Just getting started with easyui, getting started with easyui
I have read easyui's teaching over the past two days. Let's talk about some of my little understandings!
---- You also encountered a problem when using easyui:
Uncaught TypeError: cannot call method 'offset' of undefined // method declaration...
After searching for related problems on Baidu, it was found that the easyui package was modified, which caused some style errors in addition to the problem...
1. Introduce easyui main files:
<Script type = "text/javascript" src = "easyword/jEasyUi/jquery-1.4.2.min.js"> </script>
<Script type = "text/javascript" src = "easyword/jEasyUi/jquery. easyui. min. js"> </script>
<Script type = "text/javascript" src = "easyword/jEasyUi/locale/easyui-lang-zh_CN.js"> </script>
<Link href = "easyword/jEasyUi/themes/default/easyui.css" rel = "stylesheet"/>
<Link rel = "stylesheet" type = "text/css" href = "easyword/jEasyUi/themes/icon.css"/>
2. Layout: north, south, east, west, and center)
Example:
<Body class = "easyui-layout">
<Div data-options = "region: 'North ', Upper north title: 'North title', split: true "> <div id =" p "class =" easyui-panel "title =" My Panel "> <div id =" p "class =" easyui-panel "title = ""My Panel" data-options = "width: 500px; height: 150px; padding: 10px; background: # fafafa; "iconCls =" icon-save "closable =" true "collapsible =" true "minimizable =" true "maximizable = true>
---- The above is the class writing method, and the following is the JS writing method, for example:
<Div id = "login">
<P> account: <input class = "easyui-numberbox" id = "manager" type = "text" name = "name" value = ""/> </p>
<P> password: <input class = "easyui-numberbox" id = "managerpass" type = "password" name = "name" value = ""/> </p>
</Div>
First give div an id ("login ")