0
我使用代碼更改中繼檢視查看完整的網站響應網頁設計
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
var answer = confirm('Would you like to switch to the mobile version of kk');
if (!sessionStorage.alreadyClicked) {
if (answer)
{
console.log('yes');
}
else
{
console.log('cancel');
viewport = document.querySelector("meta[name=viewport]");
viewport.setAttribute('content', 'width=device-width, initial-scale=0, maximum-scale=1.0, user-scalable=0');
//window.location = window.location.origin;
}
}
}
如何留住中繼檢視頁面重新加載後不會改變?