js提示框工具類封裝

2021-08-19 16:34:42 字數 1414 閱讀 4322



var dylan = $.extend({}, dylan);/* 定義全域性物件,類似於命名空間或包的作用 */

/***

* 獲得專案根路徑 *

* 使用方法:sy.bp(); *

* @returns 專案根路徑

*/dylan.bp = function() ;

/*** @author dylan 增加命名空間功能 使用方法:dylan.ns('jquery.bbb.ccc','jquery.eee.fff');

*/dylan.ns = function() , d;

for ( var i = 0; i < arguments.length; i++) ;

for ( var k = 0; k < d.slice(1).length; k++) ;}}

return o;

};/**

* 陣列轉換成乙個物件

*/dylan.arraytoobject = function(array) ;

$.each(array,function(n,v));

return o;

};/**

* from轉換成乙個物件

*/dylan.serializeobject = function(from) ;

/*** 自定義確認框

*/dylan.confirm = function(msg,retcall) ,

confirm:  

}, 

message: ''+msg+'

', 

callback: function(result) ,

title:' 確認資訊'

});};

/*** 自定義彈出錯誤框

*/dylan.error = function(msg)  

}, 

message: ''+msg+'

',title:' 錯誤'

});};

/*** 自定義彈出提示框

*/dylan.alert = function(msg)  

}, 

message: ''+msg+'

',title:' 提示'

});};

/*** form表單的驗證提示框

* */

dylan.tips = function(error, element) );

};dylan.tipsplus = function(error, element,side) );

};/**

* 右下角提示框

* page

*/dylan.message = function(page,msg)

);};

dylan.fordight = function(dight,how);

iOS 提示框工具

toastutils.h vsfa created by long on 15 7 29.年 import import define showtoastattop format,toastutils showattop nsstring stringwithformat format,va arg...

超酷js提示框

最近主站首頁要新增乙個js提示框,找了好久終於找到了乙個非常幫的js提示框 實現起來非常簡單,而且效果很棒,現在提供給大家,希望對大家有幫助。boxover.js檔案內容為 boxover v 2.1 17th june 2006 by oliver bryant with help of matt...

阻塞提示框

函式原型 void ceikonenv alertwin const tdesc amsg void ceikonenv alertwin const tdesc amsg1,const tdesc amsg2 static void ceikonenv infowinl const tdesc a...