js 类封装(实用)

var Voice = (function(windows){
	
	var Voice = function(pack_id,input_id){
		return new Voice.fn.init(pack_id,input_id);
	}
	
	Voice.fn = Voice.prototype = {
		constructor: Voice,
		init:function(){
			
		},
		setIconById:function(){
			
		},
		closeIconById:function(){
		
		},startRecognize:function(){
			
		},dealhanLp:function(datas){
			
		}

	}
	
	Voice.fn.init.prototype = Voice.fn;
	return Voice;
	
})();

 

你可能感兴趣的:(记录)