如何使用phonegap从Java脚本调用ios方法? [英] how to call ios method from java script using phonegap?
本文介绍了如何使用phonegap从Java脚本调用ios方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是IOS中的phonegap的新手. 我按照电话间隔的指导原则进行项目. 但是现在我想向前迈出一步. 如何调用AppDelegate或任何其他IOS类的方法?
I am new with phonegap in IOS. I make the project as per guide line of phone gap. But now i want to go one step forward. how can i call a method of AppDelegate or any other IOS Class?
有人可以建议我吗?
这是我的代码:
<p>
<label for="password" class="youpasswd" data-icon="p"> Your password </label>
<input id="password" name="password" required="required" type="password" placeholder="Password" />
</p>
<p class="login button">
<input onfocus="alert('focus on')" type="button" value="Login" onclick="login();"/>
</p>
我的脚本功能:
function login(){
// here I want call any appDelegate Method
}
如果有人帮助我达到目标,我会感到很高兴.
I feel nice if some guy help me to reach my point.
谢谢.
推荐答案
您好,我想这可能对您有帮助 http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html#Plugin%20Development%20Guide
Hi ithink this may help you http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html#Plugin%20Development%20Guide
这篇关于如何使用phonegap从Java脚本调用ios方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文