如何从javascript到iphone/ipad获得价值?

时间:2022-04-19 07:30:49

I would like to get the value from Javascript which is been evoked on function click in iphone/iPad UIWebView. How can achieve this kindly provide me a snippet of both iPhone code as well as javascript code.Thanks a lot.

我想从Javascript中获取值,这是在iphone/iPad UIWebView中被调用的函数。如何才能做到这一点,为我提供了iPhone代码和javascript代码的一个片段。非常感谢。

2 个解决方案

#1


1  

in ios7 apple introduced a new frame work named JavaScriptCore and you also can find some use full tutorials

在ios7中,苹果引入了一个名为JavaScriptCore的新框架,你也可以找到一些完整的教程。

#1

# 1

#2

# 2

#3

# 3

#2


0  

See the Apple Documentation on Calling Objective-C Methods from JavaScript, this page has code snippets and links to further documentation.

关于从JavaScript调用Objective-C方法的苹果文档,这个页面有代码片段和进一步文档的链接。

#1


1  

in ios7 apple introduced a new frame work named JavaScriptCore and you also can find some use full tutorials

在ios7中,苹果引入了一个名为JavaScriptCore的新框架,你也可以找到一些完整的教程。

#1

# 1

#2

# 2

#3

# 3

#2


0  

See the Apple Documentation on Calling Objective-C Methods from JavaScript, this page has code snippets and links to further documentation.

关于从JavaScript调用Objective-C方法的苹果文档,这个页面有代码片段和进一步文档的链接。