UBAINS

 找回密码
 立即注册
搜索
热搜: UBAINS
查看: 2315|回复: 0

[程序方法] _INT原型继承方法使用说明

[复制链接]

71

主题

75

帖子

712

积分

公司员工

积分
712
发表于 2018-12-6 10:14:03 | 显示全部楼层 |阅读模式
应用于变量存储于控制主机中,IPAD从主机获取相关变量,不随软件重启而复位
应用示例可查看_MATRIX 和_AUDIO方法,可自行修改相关方法属性及添加方法属性。有任何问题建议可在下方留言,功能持续改进更新
附:

function _INT(vSaveStr)
{
        this.value = 0;
        this.value = getSystemInt(vSaveStr,this.value);
        this.set = function(vNum)
        {
                this.value = vNum;
                setSystemInt(vSaveStr,this.value);
        }
        this.get = function()
        {
                this.value = getSystemInt(vSaveStr,this.value);
                return this.value;
        }
        this.increase = function(vNum)
        {
                this.value = this.value +vNum;
                setSystemInt(vSaveStr,this.value);
        }
        this.decrease = function(vNum)
        {
                this.value = this.value - vNum;
                setSystemInt(vSaveStr,this.value);
        }
       
}

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

Archiver|手机版|小黑屋|BBS.UBAINSYUN.COM

GMT+8, 2024-4-20 21:39 , Processed in 0.032603 second(s), 18 queries .

Powered by UBAINS! X3.4

© 2001-2017 UBAINS Inc.

快速回复 返回顶部 返回列表