thirdScriptError
eval is not a function;at api request success callback function
TypeError: eval is not a function
at l.initiateExpression (http://127.0.0.1:13846/appservice/common/vendor.js:11841:157744)
at Object.searchExpressions (http://127.0.0.1:13846/appservice/common/vendor.js:11841:162427)
at Object.PropertyFactory.getProp (http://127.0.0.1:13846/appservice/common/vendor.js:11841:167154)
at new t (http://127.0.0.1:13846/appservice/common/vendor.js:11841:22230)
at getTransformProperty (http://127.0.0.1:13846/appservice/common/vendor.js:11841:27297)
at Object.TransformPropertyFactory.getTransformProperty (http://127.0.0.1:13846/appservice/common/vendor.js:11841:166271)
at CVShapeElement.initTransform (http://127.0.0.1:13846/appservice/common/vendor.js:11841:99506)
at CVShapeElement.initElement (http://127.0.0.1:13846/appservice/common/vendor.js:11841:102061)
at new CVShapeElement (http://127.0.0.1:13846/appservice/common/vendor.js:11841:81648)
at CVCompElement.CanvasRenderer.createShape (http://127.0.0.1:13846/appservice/common/vendor.js:11841:88601)
部分lottie动画报eval错误
thirdScriptError eval is not a function;at api request success callback function TypeError: eval is not a function at l.initiateExpression (http://127.0.0.1:13846/appservice/common/vendor.js:11841:157744) at Object.searchExpressions (http://127.0.0.1:13846/appservice/common/vendor.js:11841:162427) at Object.PropertyFactory.getProp (http://127.0.0.1:13846/appservice/common/vendor.js:11841:167154) at new t (http://127.0.0.1:13846/appservice/common/vendor.js:11841:22230) at getTransformProperty (http://127.0.0.1:13846/appservice/common/vendor.js:11841:27297) at Object.TransformPropertyFactory.getTransformProperty (http://127.0.0.1:13846/appservice/common/vendor.js:11841:166271) at CVShapeElement.initTransform (http://127.0.0.1:13846/appservice/common/vendor.js:11841:99506) at CVShapeElement.initElement (http://127.0.0.1:13846/appservice/common/vendor.js:11841:102061) at new CVShapeElement (http://127.0.0.1:13846/appservice/common/vendor.js:11841:81648) at CVCompElement.CanvasRenderer.createShape (http://127.0.0.1:13846/appservice/common/vendor.js:11841:88601)
删除了那2行很容易造成 小程序内存不足
兄弟,我是直接引入的,没有找到你说的那两行代码呀
删除lottie-miniprogram这2行代码就好
window.requestAnimationFrame = canvas.requestAnimationFrame.bind(canvas)
window.cancelAnimationFrame = canvas.cancelAnimationFrame.bind(canvas)
dist文件是
e.requestAnimationFrame=t.requestAnimationFrame.bind(t),e.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),