文件操作 - loadAsync.js
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/rokpaw/public_html/wp-content/plugins/wp-optimize/js/loadAsync.js
编辑文件内容
/** * This function will work cross-browser for loading scripts asynchronously */ function loadAsync(src, callback) { var scriptTag, ready = false; scriptTag = document.createElement('script'); scriptTag.type = 'text/javascript'; scriptTag.src = src; scriptTag.onreadystatechange = function() { // console.log( this.readyState ); //uncomment this line to see which ready states are called. if (!ready && (!this.readyState || this.readyState == 'complete') ) { ready = true; typeof callback === 'function' && callback(); } }; scriptTag.onload = scriptTag.onreadystatechange document.getElementsByTagName("head")[0].appendChild(scriptTag) }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件