index.js stored value:
cc.sys.localStorage.setItem("wxuser",id);
left .js value:
var wxuser=cc.sys.localStorage.getItem("wxuser");
console.log("wxuser:"+wxuser);
That’s it.
index.js stored value:
cc.sys.localStorage.setItem("wxuser",id);
left.js value:
var wxuser=cc.sys.localStorage.getItem("wxuser");
console.log("wxuser:"+wxuser);
pre>
That’s it.