➜ source git:(master) doubleGrep.rb ./ ruby Android
grep -E 'ruby' --exclude-dir={.git,lib,.gradle,.idea,build,captures} --exclude={*.png,*.jpg,*.jar} ./ -R
Checking file .//_posts/2014-09-20-interaction-between-java-and-javascript-in-android.markdown
3:title: "Android中Java和JavaScript交互"6:categories: Android Java JavaScript
8:Android提供了一个很强大的WebView控件用来处理Web网页,而在网页中,JavaScript又是一个很举足轻重的脚本。本文将介绍如何实现Java代码和Javascript代码的相互调用。
107:Java-Javascript Interaction In Android
138:Android在4.4之前并没有提供直接调用js函数并获取值的方法,所以在此之前,常用的思路是 java调用js方法,js方法执行完毕,再次调用java代码将值返回。
158:Android 4.4之后使用evaluateJavascript即可。这里展示一个简单的交互示例
211:如果只在4.2版本以上的机器出问题,那么就是系统处于安全限制的问题了。Android文档这样说的
212:>Caution: If you've set your targetSdkVersion to 17 or higher, you must add the @JavascriptInterface annotation to any method that you want available your web page code (the method must also be public). If you do not provide the annotation, then the method will not accessible by your web page when running on Android 4.2 or higher.
268: * <a href="http://www.amazon.cn/gp/product/B00LVHTI9U/ref=as_li_tf_tl?ie=UTF8&camp=536&creative=3200&creativeASIN=B00LVHTI9U&linkCode=as2&tag=droidyue-23">第一行代码:Android</a><img src="http://ir-cn.amazon-adsystem.com/e/ir?t=droidyue-23&l=as2&o=28&a=B00LVHTI9U"width="1"height="1"border="0"alt=""style="border:none !important; margin:0px !important;" />
Checking file .//_posts/2013-09-07-issues-about-installing-octopress.markdown
Checking file .//_posts/2016-04-10-jit-friendly-checker-for-android.markdown