uni-app使用小程序自定义组件,小程序组件如何调用父组件uni-app的函数?,在小程序中是
this.triggerEvent('lowValueChange', myEventDetail) 这样的,但是把小程序组件放在根目录,子组件没办法触发uni-app页面中的组件函数????
1***@qq.com
- 发布:2018-12-01 15:41
- 更新:2020-08-07 14:59
- 阅读:9244
uni-app使用小程序自定义组件,小程序组件如何调用父组件uni-app的函数?
分类:uni-app
itdage
不对
index.umd.min.js:1 [system] errorHandler TypeError: Cannot read property 'toLowerCase' of undefined
at VueComponent.Vue.$emit (vue.runtime.esm.js:3865)
at VueComponent.click (index2.vue:34)
at click (index2.vue?a5a8:64)
at invokeWithErrorHandling (vue.runtime.esm.js:1854)
at VueComponent.invoker (vue.runtime.esm.js:2179)
at invokeWithErrorHandling (vue.runtime.esm.js:1854)
at VueComponent.Vue.$emit (vue.runtime.esm.js:3882)
at VueComponent.onClick (uni-grid.vue:68)
at click (uni-grid.vue?84ce:37)
at invokeWithErrorHandling (vue.runtime.esm.js:1854)
2019-04-23 14:17
i***@qq.com
头条小程序不支持this.$emit()??
index.js:2 Uncaught SyntaxError: Unexpected token {
at eval (<anonymous>)
at window.loadScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277)
at te (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:10142)
at Q (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:9502)
at eval (list-service.js:1)
at eval (<anonymous>)
at window.loadScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277)
at fo (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:54517)
at vo (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:55358)
at So (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:56663)
at Function.eval (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:293593)
at eval (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:24507)
at eval (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:278528)
at Array.forEach (<anonymous>)
at Function.eval (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:278508)
at eval (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:262041)
at Object.O (eval at window.loadTmaScript (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277), <anonymous>:1:4269)
at C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277
at EventEmitter.<anonymous> (C:\Users\wenjie\AppData\Local\Programs\bytedanceide\resources\app.asar.unpacked\simulator-sdk\dist\preload\bgPreload.9cf8b4ceae02ff97f08b.js:277)
at EventEmitter.emit (events.js:182)
2020-03-20 10:32