对象js javascript中的可扩展对象安装npm install objectjs使用var ObjectJs = require ( 'objectjs' ) ; /// // Create object A /// A = ObjectJs . extend ( { value : null , init : function ( ) { this . value = 0 ; } , get : function ( ) { return this . value ; } , set : function ( value ) {