string map.js 简单的javascript StringMap类
#StringMap简单的javascript StringMap类。 ###安装节点npm install string-map --save浏览器(- ) < script src =" path/to/string-map.js " > script > ###用法// nodejs // var StringMap = require('string-map'); var map = new StringMap ( ) ; map . set ( 'one' , 1 ) ; map . set ( 'two' , 2 ) ; // or map . set ( { one : 1 , two : 2 } ) ; map . get ( 'one' ) ; // => 1 map . exists ( 'one' ) ; // => true
下载地址
用户评论