jquery load + div實現異步加載資源,出現重復js和css資源的重復加載,導致js失效或重復執行等問題:
調用load前執行語句: $.ajax({cache: false}) 關閉ajax緩存。
此方法已經過時 $.ajaxSetup ({ cache: false });
According to http://api.jquery.com/jQuery.ajaxSetup/ it's use isn't recommended.
Try using $.ajax({cache: false}) instead.