//等待效果 function waiting(){ $('body').append('
'); } //移除等待效果 function complete(){ $('.load_effect').remove(); } // 动态加载js封装函数 function loadScript(url, callback) { var script = document.createElement("script"); script.type = "text/javascript"; if (typeof(callback) != "undefined") { if (script.readyState) { script.onreadystatechange = function() { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { script.onload = function() { callback(); }; } }; script.src = url; document.body.appendChild(script); } // 文档加载完成后添加首页图标代码,并执行拖曳函数 $(document).ready(function(){ // console.log(menulisturi); if(menulisturi == 'Index/index' || menulistblockuri == 'Staff' || menulisturi == 'Index/test' || menulisturi == 'Index/loadindex' || menulisturi == 'Index/wxzyIndex' || menulistblockuri == 'Magazine' || menulistblockuri == 'Zywebsite'|| menulistblockuri == 'Zymap'){ }else{ //使用封装函数动态加载js并在加载成功时doing thing loadScript("/Public/Wap/js/Inertia.js?v=2018042", function() { var html = '' + msg + '
'; if(type == 1){ html += '' + msg + '
'; if(type == 1){ html += '【通知】关于二次停水供水的通知
//// 查看详情 //
//`+title+`
` +linkmsg+ `
' + msg + '
'; if(type == 1){ html += '