Alloy 编程的最佳实践
访问量: 2644
refer to: http://docs.appcelerator.com/titanium/3.0/#!/guide/Reserved_Words
1. 由于Alloy中的XML会被转换成 js文件,所以不要使用JS的关键字。
2. 不要使用两个下划线开头的变量。 例如: __my_var
访问量: 2644
refer to: http://docs.appcelerator.com/titanium/3.0/#!/guide/Reserved_Words
1. 由于Alloy中的XML会被转换成 js文件,所以不要使用JS的关键字。
2. 不要使用两个下划线开头的变量。 例如: __my_var