//用下面的方法保存全局变量,常量值 var NATIVE = {}; //类似全局变量 NATIVE.AAAA = “AAA”; NATIVE.BBBB = …