详细问题描述
plus.storage.setItem("stepno", "1");
var no=plus.storage.getItem("stepno")*1+1;
alert(no);//输出2
alert(plus.storage.getItem("stepno"));//输出1
plus.storage.setItem("stepno", no+"");
//这里如果不加"",是无法正确修改,下一步输出为1,加""则修改成功,输出为2
alert(plus.storage.getItem("stepno"));
![ScottVan](https://img-cdn-tc.dcloud.net.cn/account/identicon/63baec906f358c241d145e58292cdbb1.png)
ScottVan
- 发布:2016-11-05 03:45
- 更新:2016-11-05 03:45
- 阅读:1337
0 个回复