李炎恢_PHP_jQuery EasyUI[002] ~ EasyUI主函數(程式進入點)
李炎恢_PHP_jQuery EasyUI[002] ~ EasyUI主函數(程式進入點)
參考資料: https://github.com/jash-git/jash-WebSI
GITHUB: https://github.com/jash-git/richie_jQuery_EasyUI
My code:
$(function () { /* easyloader.load('dialog', function () { $('#box').dialog(); }); */ //$.parser.parse(); $.parser.parse('#box'); }); $.parser.auto = false; $.parser.onComplete = function () { alert('UI解析完成!'); };
<!DOCTYPE html> <html> <head> <title>jQuery Easy UI</title> <meta charset="UTF-8" /> <script type="text/javascript" src="../../easyui_15/jquery.min.js"></script> <script type="text/javascript" src="../../easyui_15/jquery.easyui.min.js"></script> <script type="text/javascript" src="../../easyui_15/locale/easyui-lang-zh_TW.js" ></script> <script type="text/javascript" src="js/index.js"></script> <link rel="stylesheet" type="text/css" href="../../easyui_15/themes/default/easyui.css" /> <link rel="stylesheet" type="text/css" href="../../easyui_15/themes/icon.css" /> </head> <body> <div id="box"> <div class="easyui-dialog" title="標題" style="width:400px;height:200px"> 内容部分 </div> </div> </body> </html>
PDF:
執行結果: