包含props的nvue页面在真机上都报错:
21:52:36.845 TypeError: value.trim is not a function
21:52:36.912 at addHandler (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1201:48)
21:52:36.913 at processAttrs (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:2133:9)
21:52:36.913 at processElement (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1737:3)
21:52:36.944 at closeElement (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1391:17)
21:52:36.946 at Object.end (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1595:7)
21:52:36.977 at parseEndTag (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:531:19)
21:52:37.002 at parseHTML (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:347:11)
21:52:37.026 at parse (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:1479:3)
21:52:37.026 at baseCompile (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:4386:13)
21:52:37.046 at Object.compile (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plug
21:52:37.065 at compile (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\weex-template-compiler\build.js:5031:25)
21:52:37.085 at actuallyCompile (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-uni-nvue-loader\lib\compileTemplate.js:69:84)
21:52:37.105 at compileTemplate (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-uni-nvue-loader\lib\compileTemplate.js:31:16)
21:52:37.128 at Object.module.exports (D:\HBuilderX.1.9.9.20190522.full\HBuilderX\plugins\uniapp-cli\node_modules\@dcloudio\vue-cli-plugin-hbuilderx\packages\webpack-uni-nvue-loader\lib\templateLoader.js:46:20)
21:52:37.148 getTemplateInfo== template md5 8e397f5792b5c71260bbb82c8cf96877 length 963440 base64 md5 jjl/V5K1xxJgu7gsjPlodw== response header {"templateSourceBase64MD5":["jjl/V5K1xxJgu7gsjPlodw=="],"templateSourceMD5":["8e397f5792b5c71260bbb82c8cf96877"]}[___Connect_-1754790689___END]
请问我需要传递复杂数据或者对组件做双向绑定,v-model该怎么做?
4 个回复
x***@126.com
文本要写在text内,要不就报这个错误
x***@126.com
或者template中使用了不兼容的语法
kim猴 - 90后程序媛
可以使用,我的用了props
luyisac
我是props没有值,大佬解决了吗