1.2.10 • Published 2 years ago

variable-manager v1.2.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

variable-manager

npm i variable-manager

import {VariableManager,Config} from "variable-manager";
let config = Config.Instance
Config.Instance.httpUrl = '/api'
Config.Instance.webSocket ='ws://192.168.18.31:8088/algmanager/ws'
let v = VariableManager.Instance

/**
	 * @description 初始化变量管理器
	 * @param parameter
	 * @param type 0,websocket直连 1,id 链接
	 * */
v.init({type:1,parameter:'2879100e-ad5f-4b0a-b82d-84709ffb3513'})
// initVariableList 在初始化前调用也可以在初始化后调用也可以
v.initVariableList([1, 2, 3, 4, 5, 6, 7, 8, 9], () => {
		console.log('123123132312')
	})
// 两种写法均可
v.setVariable({
    name: 'test',
    value:'testValue'
})
v.setVariable('test','testValue')

v.getVariable('test') // testValue 
1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.2.8

2 years ago

1.1.9

2 years ago

1.2.7

2 years ago

1.1.8

2 years ago

1.0.9

2 years ago

1.2.6

2 years ago

1.1.7

2 years ago

1.0.8

2 years ago

1.2.5

2 years ago

1.1.6

2 years ago

1.0.7

2 years ago

1.2.4

2 years ago

1.1.5

2 years ago

1.0.6

2 years ago

1.2.3

2 years ago

1.1.4

2 years ago

1.0.5

2 years ago

1.2.2

2 years ago

1.1.3

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.17

2 years ago

1.2.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.2.10

2 years ago

1.0.12

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago