angular - 使用 Angular 在 Nativescript 中弹出菜单
问题描述
我使用nativescript-menu为 Android 添加弹出菜单。
但我收到下一个错误:无法将索引 1 处的 JavaScript 参数 [object Object] 编组为 Java 类型。这是代码:
Menu.popup({
view: this.page.getViewById("menuBtn"),
actions: ["Example", "NativeScript", "Menu"]
}).then(action => {
console.log(action);
}).catch(error => {
console.log(error.message);
});
解决方案
推荐阅读
- java - Spring Boot MVC 显示 404 错误
- asp.net-core-mvc - 从身份服务器 3 升级到身份服务器 4
- r - `row.names<-.data.frame`(`*tmp*`, value = value) 中的错误:不允许重复的 'row.names'
- symfony - Symfony 4文件上传不起作用
- javascript - 如何在javascript中使用正则表达式用驼峰和大写拆分字符串?
- primefaces - p:ajax 在 p:outputPanel 中不起作用
- java - 如何使用 joda DateTime 获取自己机器的本地时区
- angular - Angular 单个组件中的多个订阅
- javascript - 用于将图像保存到文件夹的离子/打字稿功能
- python-3.x - 如何在python 3中用scrapy爬取整个网站并抓取每个网页的数据