1. 首页
  2. 人工智能
  3. 计算广告
  4. jQuery自定义组件(导入组件)

jQuery自定义组件(导入组件)

上传者: 2020-11-29 08:26:52上传 PDF文件 67.93KB 热度 12次
1.组件js (function($){ //自定义去除字符串两边空白 String.prototype.trim=function(){ return this.replace(/(^\s*)|(\s*$)/g, ""); } //自定义导入组件 $.fn.customImport = function(methodOroptions,value){ if(typeof methodOroptions == "string"){//存在方法时,调用方法 return $.fn.customImport.methods[methodOroptions](this, value); } var
下载地址
用户评论