-
通用組件 定制組件查看全部
-
低層 框架查看全部
-
Web 組件 API查看全部
-
JS 組件查看全部
-
阻塞 回調(diào)查看全部
-
window.Tabview = Tabview查看全部
-
window.TabView 將希望暴露的數(shù)據(jù)暴露查看全部
-
css 前綴解決命名沖突查看全部
-
匿名函數(shù)解決命名沖突查看全部
-
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>彈窗</title> <link rel="stylesheet" href="css/base.css"/> <link rel="stylesheet" href="css/window.css"/> </head> <body> <input type="button" id="a" value="alert彈窗"/> <script type="text/javascript" defer async="true" data-main="scripts/main.js" src="scripts/require.js"></script> </body> </html>查看全部
-
require.config({ paths:{ jquery:'jquery-2.0.0' } }); require(['jquery','window'],function($,window){ $('#a').click(function () { new window.Window().alert({ title:'title', content : 'welcome', width : 300, height : 150, y : 50, hasCloseBtn : true, handlerAlertBtn : function () { alert("you click the button"); }, handlerCloseBtn : function () { alert("you close the box"); }, }); }); });查看全部
-
通用組件和定制組件查看全部
-
js分層方法查看全部
-
requirejs用法查看全部
-
JavaScript 細(xì)分查看全部
舉報(bào)
0/150
提交
取消