|

楼主 |
发表于 2017-10-25 10:20:14
|
显示全部楼层
还是不可以的,他们说应该是ios缓存的问题,然后我在网上找到了这段代码解决了,直接调用这个方法
Tools.wxSetTitle=function(title) {
document.title = title;
var mobile = navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(mobile)) {
var iframe = document.createElement('iframe');
iframe.style.visibility = 'hidden';
iframe.setAttribute('src', 'loading.png');
var iframeCallback = function() {
setTimeout(function() {
iframe.removeEventListener('load', iframeCallback);
document.body.removeChild(iframe);
}, 0);
};
iframe.addEventListener('load', iframeCallback);
document.body.appendChild(iframe);
}
}
|
|