Loading

easyUI 初始化的两种方式

easyUI 初始化的两种方式:

class方式和js方式;

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="easyui/jquery.min.js"></script>
    <script src="easyui/jquery.easyui.min.js"></script>
    <script src="easyui/locale/easyui-lang-zh_CN.js"></script>
    <script src="js/test001.js"></script>
    <link rel="stylesheet" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" href="easyui/themes/icon.css">
</head>

<body>
    <!-- Class方式进行设置 -->
    <div class="easyui-dialog" style="width:600px;height:400px">this is easyui dialog</div>
    <!-- JS方式进行设置 -->
    <div id="box" style="width:600px;height:400px">this is second dialog</div>
</body>

</html>

test001.js

$(function(argument) {
    // JS方式进行easyUI设置;
    $('#box').dialog();
});

 

posted @ 2015-10-06 22:05  stono  阅读(1536)  评论(0编辑  收藏  举报