更新完HBuilderX,之前的自定义组件,会报这种错误
event handler[-1][51-0] not found
这要怎么解决呢
- 发布:2020-05-28 12:04
- 更新:2020-05-28 18:28
- 阅读:809
贴完整截图,event handler 上面有详细错误,这种情况一般是代码不规范导致,事件中访问了不存在的属性
-
梦栖 (作者)
// #ifdef APP-PLUS
var currentWebview = vm.$mp.page.$getAppWebview();
console.log(currentWebview)
var tn = currentWebview.getStyle().titleNView;
console.log(tn)
tn.buttons[index].text = text; //[0] 按钮的下标
currentWebview.setStyle({
titleNView: tn
});
// #endif
动态修改原生titleNview,新版本为什么不支持?2020-05-28 21:14
2***@qq.com - android,前端开发工程师
我也是醉了,longpress也没有了?这什么骚操作
[Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.392 (found in <Root>)
18:26:30.423 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.486 (found in <Root>)
18:26:30.517 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.579 (found in <Root>)
18:26:30.611 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.673 (found in <Root>)
18:26:30.704 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.767 (found in <Root>)
18:26:30.798 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.861 (found in <Root>)
18:26:30.892 [Vue warn]: Invalid handler for event "longpress": got undefined
18:26:30.954 (found in <Root>)
18:26:30.986 [Vue warn]: Invalid handler for event "longpress": got undefined