Anthony

模块化

...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <%@ page isELIgnored ="false" %> 4 <%@ page isELIgnored ="false" %>
5 5
6 <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) --> 6 <!-- 页面都为div 页面不要使用id 使用class选择 class命名规范:crm(系统名)-accountset(模块名)-XXX(功能名) -->
7 -<div class="crm-accountset" style="display: none;"> 7 +<div class="crm-accountset" >
8 <div class="north rs-navi" data-options="region:'north',border:false"> 8 <div class="north rs-navi" data-options="region:'north',border:false">
9 <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">CRM</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">CRM账套</a> 9 <a href="javascript:void(0);" class="rs-navi-a">RUNSA PORTAL</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">CRM</a><i>┃</i><a href="javascript:void(0);" class="rs-navi-a">CRM账套</a>
10 </div> 10 </div>
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
14 </div> 14 </div>
15 </div> 15 </div>
16 <!-- require加载此jsp引用的js,js的init返回一个page给页面 --> 16 <!-- require加载此jsp引用的js,js的init返回一个page给页面 -->
17 -<script type="text/javascript">require(["accountset/accountset"],function(page){page.init();});</script>
...\ No newline at end of file ...\ No newline at end of file
17 +<script type="text/javascript">require(["accountset/accountset"],function(accountset){new accountset();});</script>
...\ No newline at end of file ...\ No newline at end of file
......