Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看到这个。
是否可以为函数 execCommands 创建自定义命令(以及如何创建)?
我需要用于自定义标记的自定义命令。
我不相信你可以覆盖 execCommand。您可以感知地进行条件检查,选择相应地运行 execCommand 还是自定义处理程序?
IE:
if(markup is custom){ /* Execute custom command... */ } else { /* Execute custom handler... */ }
这可能只是在教祖母吸鸡蛋……
作为提示,您可能会通过更深入的示例获得更准确的答案,以说明您想要实现的目标。
我用 JSON 创建了一个 web 服务,我想解析它然后把它们放在 listview 上。但是当我运行应用程序时,它会强制关闭并显示错误消息。请检查我的代码,有什么问题吗?
这是我尝试运行我的应用程序时的错误消息:
org.json.JSONEx