异步请求时有时会让js不起作用,那么重新加载js

function reloadSmartMenu() {
    var jsElem = document.createElement('script');
    jsElem.src= path+'/system/config/js/reloadStat.js';
    document.getElementsByTagName('head')[0].appendChild(jsElem);
}

 

posted @ 2016-06-05 18:56  user_孙  阅读(213)  评论(0编辑  收藏  举报