mode/bootstrapplugin/jquery-bootsoedit.js

(完整代码) 704B

/**
	双击编辑格
*/

(function ($) {
	
	function bootsoedit(element, options){
		var obj		= element;
		var can		= options;
		var rand	= js.getrand(); 
		var me		= this;
		
		this.init	= function(){
			obj[can.trigger](function(event){
				me.setcontent(this, event);
			});
		};
		
		this.setcontent	= function(o1, e){
			alert(1);
		}
	};
	
	
	$.fn.bootsoedit	= function(options){
		var defaultVal = {
			trigger:'click',
			fields:'',
			data:[],//当前数据
			title:''
		};
	
	
		return this.each(function(){
			var can = $.extend({}, defaultVal, options);
			var clsa = new bootsoedit($(this), can);
			clsa.init();
			return clsa;
		});
	};
})(jQuery);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。