其他提示都是黄色感叹号: 1、已开启代码文件保存后自动热重启(不支持JSON) 2、VM25 workerasdebug.js:1 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details. 3、[pages/index/index] [Component] <map>: 组件已支持同层渲染,建议使用 view 代替 cover-view 渲染(这个已经修改了,但还是一直有提示)
目前还是不行吗?
一般重新安装一下开发者工具就可以了
清除下缓存
我把变量名换了也不行
//--onshow
onShow: function () {
var that=this;
var token=0;
clearId=setInterval(function(){
if(token<newsData.length){
that.setData({
news:newsData[token].text,
redirectId:newsData[token].redirectId
});
token=token+1;
}else{
token=0;
that.setData({
news:newsData[token].text,
redirectId:newsData[token].redirectId
});
}
},15000);
},
//onshow
onHide: function () {
clearInterval(clearId);
},
newsData在前面定义了个空数组,通过onLoad从数据库拿到数据,然后在onShow定时切换,但是我尝试把这段代码注释掉,虽然这个错误提示没有了,但预览和真机调试还是一样在加载。
1、已开启代码文件保存后自动热重启(不支持JSON)
2、VM25 workerasdebug.js:1 [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
3、[pages/index/index] [Component] <map>: 组件已支持同层渲染,建议使用 view 代替 cover-view 渲染(这个已经修改了,但还是一直有提示)