Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let context: JSContext = JSContext()!
- context.evaluateScript("1 + 1")
- // 输出 2
- context.evaluateScript("
- [1, 2, 3, 4, 5].map(n => n*n);
- ")
- // 输出 1,4,9,16,25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement