Skip to content

Commit

Permalink
编译 JavaScript 引擎 QuickJS 到 Android 教程
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiki committed May 23, 2021
1 parent f71dc44 commit ff1271e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 编译 JavaScript 引擎 QuickJS 到 Android 教程
https://www.jianshu.com/p/6ffe30df4e30
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
int result = QuickJS.executeIntegerScript("var a = 2+2;\n a;","file.js");
int result = QuickJS.executeIntegerScript("var a = 2+2;\n a;", "file.js");
Log.e("quickjs", String.valueOf(result));
}

Expand Down

0 comments on commit ff1271e

Please sign in to comment.