uni-app错误记录

作者: gu_lao_rou-p 分类: springBoot,uniapp 发布时间: 2023-01-11 17:37
selectAll:function(){
            let that=this;
	    //console.log(that.url.getAll)
	    uni.request({
	    method:'POST',
	    url: that.url.getAll, //仅为示例,并非真实接口地址。
	    data:{},
	    success: (res) => {
	    console.log(res.data);
	    that.book=res.data.list			
	this.text = 'request success';
	}
    })
}

因为复制代码的时候,只会复制uni.request里的全部东西,所以错过了:

let that=this;

所以导致报错


Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 26

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 27

Warning: Undefined variable $aria_req in /www/wwwroot/l.lvovl.cn/wp-content/themes/JieStyle-Two-master/comments.php on line 28
标签云