天天看點

搭建Easy UI開發環境

  1. 下載下傳Easy UI壓縮包并解壓,将壓縮包下的的demo、locale、themes整個檔案夾、以及jquery.easyui.min.js、jquery.min.js提取到一個單獨的檔案夾,如easy-ui
  2. 把easy-ui檔案夾拷貝到項目根目錄,放哪自己決定,我是放在script檔案夾下,項目目錄如下:                                                                                                                                              
    搭建Easy UI開發環境
  3. 在頁面中引入easy ui必要的css樣式以及js檔案
    <link rel="stylesheet" type="text/css" href="/EasyUI/script/easy-ui/themes/default/easyui.css" target="_blank" rel="external nofollow" >
    <link rel="stylesheet" type="text/css" href="/EasyUI/script/easy-ui/themes/icon.css" target="_blank" rel="external nofollow" >
    <link rel="stylesheet" type="text/css" href="/EasyUI/script/easy-ui/demo/demo.css" target="_blank" rel="external nofollow" >
    <script type="text/javascript" src="/EasyUI/script/easy-ui/jquery.min.js"></script>
    <script type="text/javascript" src="/EasyUI/script/easy-ui/jquery.easyui.min.js"></script>