我有带有嵌入 webkit 的 cocoa 应用程序,它显示简单的 html
<input id="first_name" type="text">
和<input id="start" type="button">
我想要这个:当你点击 #start
时按钮,显示一个常规的 cocoa NSAlert 与 #first_name
值(value)。
好吧,我需要以某种方式组织 html、js 和 cocoa 之间的连接。
这可能吗?
最佳答案
关于javascript - 通过webkit连接html、js和cocoa,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3505592/