最高速度かましたい

学生エンジニア見習い。何でも書きます。

2013-03-31から1日間の記事一覧

TitaniumでwebViewにデータを渡す方法のモメ

evalJSを使います。 ◆その1 test.js webView.evalJS("test(SAY = '社畜!',SAY2 = '最高!')"); test.html <html> <body> <script type = "text/javascript"> function test(title) { Ti.API.info(SAY); alert(SAY); Ti.API.info(SAY2); alert(SAY2); }; </script> </body> </html> ◆その2(JSON)test2.js var hours = 5; //webVi…