- 开发者工具有时出错:浏览器不支持javascript,页面无法访问?
有时候,微信开发者工具出错,远程页面返回整个网页出错信息,提示。。。<noscript>浏览器不支持javascript,页面无法访问!</noscript> 。。。,这怎么解决?
2022-08-15 - 有时候 ,微信开发者工具编译运行提示:浏览器不支持javascript,页面无法访问?
第1步返回值<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <noscript>浏览器不支持javascript,页面无法访问!</noscript> <body> <H1 id="msg"></H1> </body> <script type="text/javascript"> var dt = new Date(); dt.setSeconds(dt.getSeconds() + 60); document.cookie = "_wtsjsk=a1bdf3df5c77faa0e5e60b14a38cd946; path=/ "; var cookiesEnabled = document.cookie.indexOf("_wtsjsk=") != -1; function getCookie(name) { var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return arr[2]; else return null; } var preurl = getCookie("_wtspurl"); var cookie_CaptchaKey = getCookie("_wtscpk"); var cookie_Expire = getCookie("_wtsexp"); if(cookie_CaptchaKey == null||cookie_Expire == null){ var msg = "浏览器安全检查中.....请稍后"; document.getElementById("msg").innerHTML=msg; if (preurl==null) { if(!cookiesEnabled) { var msg ="浏览器不支持cookie,页面无法访问"; document.getElementById("msg").innerHTML=msg; } else { //preurl = window.location.pathname; setTimeout("javascript:window.location.href ="+preurl+";",3000); } } else { setTimeout("javascript:window.location.href ="+preurl+";",3000); } }else{ window.location.href = preurl ; } </script> </html> index.js? [sm]:283 http://wwwxxx.com/php/111111\\\\\\\\\\\\\\\\\\\\\ index.js? [sm]:289 <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <noscript>浏览器不支持javascript,页面无法访问!</noscript> <body> <H1 id="msg"></H1> </body> <script type="text/javascript"> var dt = new Date(); dt.setSeconds(dt.getSeconds() + 60); document.cookie = "_wtsjsk=a1bdf3df5c77faa0e5e60b14a38cd946; path=/ "; var cookiesEnabled = document.cookie.indexOf("_wtsjsk=") != -1; function getCookie(name) { var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return arr[2]; else return null; } var preurl = getCookie("_wtspurl"); var cookie_CaptchaKey = getCookie("_wtscpk"); var cookie_Expire = getCookie("_wtsexp"); if(cookie_CaptchaKey == null||cookie_Expire == null){ var msg = "浏览器安全检查中.....请稍后"; document.getElementById("msg").innerHTML=msg; if (preurl==null) { if(!cookiesEnabled) { var msg ="浏览器不支持cookie,页面无法访问"; document.getElementById("msg").innerHTML=msg; } else { //preurl = window.location.pathname; setTimeout("javascript:window.location.href ="+preurl+";",3000); } } else { setTimeout("javascript:window.location.href ="+preurl+";",3000); } }else{ window.location.href = preurl ; } </script> </html>
2022-08-15 - 选项卡,多个swiper-item scroll-view 真机调试无显示?
<view class="tab"> <scroll-view class="nav" scroll-x="true" scroll-left="{{scrollLeft}}" > <block wx:for="{{allTitle}}" wx:for-index="idx" wx:key="idex"> <view class="nav-item {{currentIndex==idx ? 'active' : ''}}" data-current="{{idx}}" bindtap="changeTitle">{{item.titles}}</view> </block> </scroll-view> <swiper class="content-container" current="{{currentIndex}}" circular="{{false}}" bindchange="changeContent"> <swiper-item class="content"> <scroll-view scroll-y style="height:{{scrollYHeight}}px" scroll-top="{{scrollTop}}"bindscroll="bindscroll"> <!--消息列表--> <view class="info" wx:for="{{contentlist}}" wx:key="key" wx:for-index="idx"> <view class="xiaoxi"> <image class="widget__arrow" src="{{item.avatarUrl}}" style="border-radius:50%" mode="aspectFill"></image> <view class="xiaoxitext"> <text class="xiaoxitext1">{{item.nickName}}</text> <text class="xiaoxitext2" bindtap="xiaoxi" data-x="{{item.userid}}" >{{item.text}}</text> <text class="xiaoxitext3"> 时间:{{item.shijian}}</text> </view> </view> </view> </scroll-view> </swiper-item> <swiper-item class="content"> <scroll-view scroll-y style="height:{{scrollYHeight}}px" scroll-top="{{scrollTop}}"bindscroll="bindscroll"> <!--作品列表--> <view class="info" wx:for="{{contentlist2}}" wx:key="key" wx:for-index="idx"> <image class="widget__arrow" src="{{item.avatarUrl}}" mode="aspectFill"></image> <input hidden="{{hidden}}" value="序号:{{item.id}}"/> <text class="time">公司名称:{{item.gongsiname}}</text> <view> <text>姓名:{{item.nickName}}</text> </view> </view> </scroll-view> </swiper-item> <swiper-item class="content"> <scroll-view refresher-enabled="true" scroll-y style="height:{{scrollYHeight}}px" scroll-top="{{scrollTop}}"bindscroll="bindscroll"> <!--收藏列表--> <view class="info" wx:for="{{contentlist}}" wx:key="key" wx:for-index="idx"> <input hidden="{{hidden}}" value="序号:{{item.id}}"/> <text class="time">手机号:{{item.shoujihao}}</text> <view> <text>姓名:{{item.names}}</text> </view> </view> </scroll-view> </swiper-item> 在微信开发者工具中显示正常,真机调试时远程数据库有返回输出但无显示,请问是什么情况?
2021-12-17 - 一直不明白这个setTimeout里面的内容和符号是什么意思?
setTimeout( () => { this.dataList1(this.data.newid,page1 + 1, () => { loadingMore1 = false; }) },
2021-03-30 - 欲做一个仿抖音小程序,但VIDEO层级太高了无法做到怎么办?
开发者版本号1.05.2101181,想开发一个仿抖音那样的程序,底层播放视频,浮动层有评论、投诉及底部菜单等,但是搞了好久好久都没法做到,因为VIDEO的层级太高了,用cover-view虽然可以做到浮动文字等,但却有很多问题。请问怎么解决VIDEO层级高的问题,或者有没有替代VIDEO的插件?
2021-01-29 - 微信小程序如何添加到桌面和转发给谁的帮助文档?
开发个微信小程序,但是对如何实现点击右边三点弹出添加到桌面的程序和转发给他人的程序不了解,求解?
2019-11-21