- UID
- 49150
- 好友
- 0
- 记录
- 0
- 日志
- 0
- 相册
- 0
- 回帖
- 126
- 主题
- 13
- 分享
- 0
- 精华
- 0
- 积分
- 108
- 阅读权限
- 1
- 注册时间
- 2012-12-18
- 在线时间
- 28 小时
- 最后登录
- 2018-5-31

侠客
- 威望
- 12 点
- 冒险币
- 272 个
- 贡献值
- 0 点
- 好评度
- 0 点
 
|
本帖最后由 紫灵园 于 2012-12-21 12:39 编辑
源代码如下:
var status = 0;
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (status == 0 && mode == 0) {
cm.dispose();
return;
}
if (mode == 1) {
status++;
} else {
status--;
}
if (status == 0) {
cm.写入数值(保存的KEY字符,要写入的数值);
return;
} else if (status == 1) {
cm.sendOk("保存的数值为" + cm.读取数值(KEY字符));
cm.dispose();
}
}
|
|