2***@qq.com
2***@qq.com
  • 发布:2022-06-10 10:37
  • 更新:2023-03-01 10:34
  • 阅读:256

真机测试时,发现在data内的定义的数组无法使用数组原型链上自定义的方法,H5页面可以正常使用

分类:uni-app

Array.prototype.aa = function() {
return this.length
}
const arr = [1,2,3];
console.log(this.fileList2.aa); // undefined
console.log(arr.aa,1); // function() { return this.length }

2022-06-10 10:37 负责人:无 分享
已邀请:
无别

无别

和我的问题有点接近,我自己写了服务端使用网页和ApiPost测试均正常,但是uin-app调试就是不行,我们两个的问题互相点各关注吧,就问题描述中的信息来看是和我差不多。

1***@163.com

1***@163.com -

此问题您解决了吗,我这块遇到了相同的问题

要回复问题请先登录注册