问题
I'm trying to find out what features of JavaScript I can use in Titanium Appcelerator. I've noticed that it has both forEach and map on Arrays, so I guess it's JavaScript language version is least 1.6 (in MDCs's terms). But does it reach further?
回答1:
I'm on an Appcelerator Titanium webinar this morning and I asked your question.
Here is their answer:
- Not sure of the exact version (e.g., 1.7 or 1.8)
- Using Rhino Javascript interpreter on Android
- Using Webkit Javascript interpreter on the iPhone
So you can basically figure the answer out (exact Javascript version) based on these answers, but the person leading the call (Kevin Whinnery) didn't know the answer off the top of his head.
来源:https://stackoverflow.com/questions/3369429/what-version-of-javascript-does-titanium-use