中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

網(wǎng)站建設(shè)內(nèi)部流程圖營(yíng)銷策略有哪些

網(wǎng)站建設(shè)內(nèi)部流程圖,營(yíng)銷策略有哪些,河南安陽(yáng)滑縣疫情最新消息,做按摩網(wǎng)站多少錢EXTJS的面向?qū)ο蟪绦蛟O(shè)計(jì)◆EXTJS在面向?qū)ο笞鞒龅呐χС置臻g支持類實(shí)例屬性支持類實(shí)例方法支持類靜態(tài)方法支持構(gòu)造方法支持類繼承支持類實(shí)例方法重寫支持命名空間別名支持類別名支持事件隊(duì)列命名空間定義:對(duì)于類的組織定義方式代碼舉例: view plai…

EXTJS的面向?qū)ο蟪绦蛟O(shè)計(jì)

◆EXTJS在面向?qū)ο笞鞒龅呐?/span>

支持命名空間
支持類實(shí)例屬性
支持類實(shí)例方法
支持類靜態(tài)方法
支持構(gòu)造方法
支持類繼承
支持類實(shí)例方法重寫
支持命名空間別名
支持類別名
支持事件隊(duì)列


命名空間

定義:對(duì)于類的組織定義方式

代碼舉例:

view plain copy to clipboard print ?
  1. Ext.namespace("Ext.dojochina");??



Java代碼對(duì)照:

view plain copy to clipboard print ?
  1. package?Ext.dojochina;??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?namespace.js ??
  2. ??
  3. ????Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. ????Ext.dojochina.HelloWorld?=?Ext.emptyFn;??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>命名空間</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="namespace.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????new?Ext.dojochina.HelloWorld(); ??
  12. ??
  13. </script> ??
  14. </head> ??
  15. <body> ??
  16. </body> ??
  17. </html>??



類實(shí)例屬性

定義:對(duì)于一個(gè)實(shí)例的特征描述。

代碼舉例:

view plain copy to clipboard print ?
  1. ... ??
  2. Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  3. ????name:?'陳治文'? ??
  4. });??



Java代碼對(duì)照:

view plain copy to clipboard print ?
  1. ... ??
  2. private?String?name?=?"陳治文"; ??
  3. ??
  4. public?void?setName(String?name){ ??
  5. ????this.name?=?name; ??
  6. } ??
  7. public?String?getName(){ ??
  8. ????return?this.name ??
  9. } ??
  10. ...??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?property.js ??
  2. ??
  3. ????Ext.namespace("Ext.dojochina"); ??
  4. ????Ext.dojochina.Person?=?Ext.emptyFn; ??
  5. ????Ext.apply(Ext.dojochina.Person.prototype,?{name:?'MacroChin'});??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>類實(shí)例屬性</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="property.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????var?person=new?Ext.dojochina.Person(); ??
  12. ????alert(person.name); ??
  13. ????person.name='AotherPerson'; ??
  14. ????alert(person.name); ??
  15. ??
  16. </script> ??
  17. </head> ??
  18. <body> ??
  19. </body> ??
  20. </html>??



類實(shí)例方法

定義:一個(gè)對(duì)象所能具有的功能與動(dòng)作。

代碼舉例:

view plain copy to clipboard print ?
  1. ... ??
  2. print:?function(){ ??
  3. ????alert(String.format("姓名:{0},性別:{1}",?this.name,?this.sex)); ??
  4. }??



Java代碼對(duì)照:

view plain copy to clipboard print ?
  1. ... ??
  2. public?void?print(){ ??
  3. ????System.out.printf("姓名:%s,性別:%s",?this.name,?this.sex); ??
  4. }??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?dynamicMethod.js ??
  2. ??
  3. ????Ext.namespace("Ext.dojochina"); ??
  4. ????Ext.dojochina.Person?=?Ext.emptyFn; ??
  5. ????Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  6. ????????name:?'', ??
  7. ????????sex:?'', ??
  8. ????????print:?function(){ ??
  9. ????????????alert(String.format("姓名:{0},性別:{1}",?this.name,?this.sex)); ??
  10. ????????} ??
  11. ????});??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>類實(shí)例方法</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="dynamicMethod.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????var?person?=?new?Ext.dojochina.Person(); ??
  12. ??
  13. ????person.name?=?'MacroChin'; ??
  14. ????person.sex?=?'男'; ??
  15. ????person.print(); ??
  16. ??
  17. ????person.name?=?'Ann'; ??
  18. ????person.sex?=?'女'; ??
  19. ????person.print(); ??
  20. ??
  21. </script> ??
  22. </head> ??
  23. <body> ??
  24. </body> ??
  25. </html>??



類靜態(tài)方法

定義:在一個(gè)類級(jí)別上共享的方法。

代碼舉例:

view plain copy to clipboard print ?
  1. ... ??
  2. Ext.dojochina.Person.print?=?function(name,?sex){ ??
  3. ????var?p?=?new?Ext.dojochina.Person(); ??
  4. ????p.name?=?name; ??
  5. ????p.sex?=?sex; ??
  6. ????p.print(); ??
  7. }??



Java代碼對(duì)照:

view plain copy to clipboard print ?
  1. ... ??
  2. public?static?void?print(String?name,?String?sex){ ??
  3. ????Person?person?=?new?Person(); ??
  4. ????person.setName(name); ??
  5. ????person.setSex(sex); ??
  6. ????person.print(); ??
  7. }??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?staticMethod.js ??
  2. ??
  3. ????Ext.namespace("Ext.dojochina"); ??
  4. ????Ext.dojochina.Person?=?Ext.emptyFn; ??
  5. ??
  6. ????Ext.dojochina.Person.print?=?function(name,?sex){ ??
  7. ????????var?p?=?new?Ext.dojochina.Person(); ??
  8. ????????p.name?=?name; ??
  9. ????????p.sex?=?sex; ??
  10. ????????p.print(); ??
  11. ????} ??
  12. ??
  13. ????Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  14. ????????name:?'', ??
  15. ????????sex:?'', ??
  16. ????????print:?function(){ ??
  17. ????????????alert(String.format("姓名:{0},性別:{1}",?this.name,?this.sex)); ??
  18. ????????} ??
  19. ????});??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>類靜態(tài)方法</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="staticMethod.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????Ext.dojochina.Person.print('MacroChin',?'男'); ??
  12. ????Ext.dojochina.Person.print('Ann',?'女'); ??
  13. ??
  14. </script> ??
  15. </head> ??
  16. <body> ??
  17. </body> ??
  18. </html>??



構(gòu)造方法

定義:在初始化一個(gè)對(duì)象的同時(shí)執(zhí)行的方法。

代碼舉例:

view plain copy to clipboard print ?
  1. Ext.dojochina.Person?=?function(_cfg){ ??
  2. ????Ext.apply(this,?_cfg); ??
  3. }??



Java代碼對(duì)照:

view plain copy to clipboard print ?
  1. ... ??
  2. public?Person(String?name,?String?sex){ ??
  3. ????this.name?=?name; ??
  4. ????this.sex?=?sex; ??
  5. } ??
  6. ...??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?initialize.js ??
  2. ??
  3. ????Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. ????Ext.dojochina.Person?=?function(_cfg){ ??
  6. ????????Ext.apply(this,?_cfg); ??
  7. ????} ??
  8. ??
  9. ????Ext.dojochina.Person.print?=?function(name,?sex){ ??
  10. ????????var?person?=?new?Ext.dojochina.Person({name:?name,?sex:sex}); ??
  11. ????????person.print(); ??
  12. ????} ??
  13. ??
  14. ????Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  15. ????????print:?function(){ ??
  16. ????????????alert(String.format("Name:{0}?Sex:{1}",?this.name,?this.sex)); ??
  17. ????????} ??
  18. ????})??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>構(gòu)造方法</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="initialize.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????Ext.dojochina.Person.print('PersonA',?'女'); ??
  12. ????Ext.dojochina.Person.print('PersonB',?'男'); ??
  13. ??
  14. </script> ??
  15. </head> ??
  16. <body> ??
  17. </body> ??
  18. </html>??



類繼承

定義:對(duì)于類的一種擴(kuò)展形式。

代碼舉例:

view plain copy to clipboard print ?
  1. Ext.extend(Ext.dojochina,Strudent, ??
  2. ????Ext.dojochina.Person,?{ ??
  3. ????????job:?'學(xué)生'??
  4. ????} ??
  5. );??



Java代碼比照:

view plain copy to clipboard print ?
  1. class?Student?extend?Person{ ??
  2. ????public?Student(String?name,?String?sex){ ??
  3. ????????super(name,?sex); ??
  4. ????????this.setJob("學(xué)生"); ??
  5. ????} ??
  6. }??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?Person.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Person?=?function(_cfg){Ext.apply(this,?_cfg)}; ??
  6. ??
  7. Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  8. ????job:?'無(wú)', ??
  9. ????print:?function(){ ??
  10. ????????alert(String.format('姓名:{0}?性別:{1}?角色:{2}',?this.name,?this.sex,?this.job)); ??
  11. ????} ??
  12. });??


view plain copy to clipboard print ?
  1. //?Teacher.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Teacher?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  6. ??
  7. Ext.extend(Ext.dojochina.Teacher,?Ext.dojochina.Person,?{job:?'教師'});??


view plain copy to clipboard print ?
  1. //?Student.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Student?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  6. ??
  7. Ext.extend(Ext.dojochina.Student,?Ext.dojochina.Person,?{job:?'學(xué)生'});??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>類繼承</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="Person.js"></script> ??
  9. <script?type="text/javascript"?src="Teacher.js"></script> ??
  10. <script?type="text/javascript"?src="Student.js"></script> ??
  11. <script?type="text/javascript"> ??
  12. ??
  13. ????var?t?=?new?Ext.dojochina.Teacher({name:'老師A',?sex:'女'}); ??
  14. ????t.print(); ??
  15. ??
  16. ????var?s?=?new?Ext.dojochina.Student({name:'學(xué)生B',?sex:'男'}); ??
  17. ????s.print(); ??
  18. ??
  19. </script> ??
  20. </head> ??
  21. <body> ??
  22. </body> ??
  23. </html>??



類實(shí)例方法重寫

定義:子類在繼承父類時(shí)對(duì)其已經(jīng)存在的方法進(jìn)行重新定義。

代碼舉例:

view plain copy to clipboard print ?
  1. Ext.extend(Ext.dojochina.Teacher, ??
  2. ????Ext.dojochina.Person,?{ ??
  3. ????????print:?function(){ ??
  4. ????????????alert(String.format('{0}是一位{1}老師',?this.name,?this.sex)); ??
  5. ????????} ??
  6. ????} ??
  7. );??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?Person.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Person?=?function(_cfg){Ext.apply(this,?_cfg)}; ??
  6. ??
  7. Ext.apply(Ext.dojochina.Person.prototype,?{ ??
  8. ????job:?'無(wú)', ??
  9. ????print:?function(){ ??
  10. ????????alert(String.format('姓名:{0}?性別:{1}?角色:{2}',?this.name,?this.sex,?this.job)); ??
  11. ????} ??
  12. });??


view plain copy to clipboard print ?
  1. //?teacher_.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Teacher?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  6. ??
  7. Ext.extend(Ext.dojochina.Teacher,?Ext.dojochina.Person,?{ ??
  8. ????print:?function(){ ??
  9. ????????alert(String.format('{0}是一位{1}老師',?this.name,?this.sex)); ??
  10. ????} ??
  11. });??


view plain copy to clipboard print ?
  1. //?student_.js ??
  2. ??
  3. Ext.namespace("Ext.dojochina"); ??
  4. ??
  5. Ext.dojochina.Student?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  6. ??
  7. Ext.extend(Ext.dojochina.Student,?Ext.dojochina.Person,?{ ??
  8. ????print:?function(){ ??
  9. ????????alert(String.format('{0}是一位{1}學(xué)生',?this.name,?this.sex)); ??
  10. ????} ??
  11. });??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>類方法重寫</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="Person.js"></script> ??
  9. <script?type="text/javascript"?src="teacher_.js"></script> ??
  10. <script?type="text/javascript"?src="student_.js"></script> ??
  11. <script?type="text/javascript"> ??
  12. ??
  13. ????var?p?=?new?Ext.dojochina.Person({name:'PersonX',?sex:?'男'}); ??
  14. ????p.print(); ??
  15. ??
  16. ????var?t?=?new?Ext.dojochina.Teacher({name:'老師A',?sex:'女'}); ??
  17. ????t.print(); ??
  18. ??
  19. ????var?s?=?new?Ext.dojochina.Student({name:'學(xué)生B',?sex:'男'}); ??
  20. ????s.print(); ??
  21. ??
  22. </script> ??
  23. </head> ??
  24. <body> ??
  25. </body> ??
  26. </html>??



命名空間別名

定義:對(duì)于命名空間的別稱。(別名首字母要大寫)

代碼舉例:

view plain copy to clipboard print ?
  1. Dc?=?Ext.dojochina;??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?namespaceShort.js ??
  2. ??
  3. Ext.namespace('Ext.dojochina'); ??
  4. ??
  5. Dc?=?Ext.dojochina; ??
  6. ??
  7. Dc.Person?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  8. ??
  9. Dc.Person.print?=?function(name,?sex){ ??
  10. ????var?p?=?new?Dc.Person({name:?name?,?sex:?sex}); ??
  11. ????p.print(); ??
  12. } ??
  13. ??
  14. Ext.apply(Dc.Person.prototype,{ ??
  15. ????print:?function(){ ??
  16. ????????alert(String.format('姓名:{0},?性別:{1}',?this.name,?this.sex)); ??
  17. ????} ??
  18. });??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>命名空間別名</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="namespaceShort.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????var?p?=?new?Dc.Person({name:'MC',?sex:'M'}); ??
  12. ????p.print(); ??
  13. ??
  14. ????var?t?=?new?Ext.dojochina.Person({name:'MacroChin',?sex:'男'}); ??
  15. ????t.print(); ??
  16. ??
  17. </script> ??
  18. </head> ??
  19. <body> ??
  20. </body> ??
  21. </html>??



類別名

定義:對(duì)于類的別稱。(別名全部字母都要大寫)

代碼舉例:

view plain copy to clipboard print ?
  1. PN=Ext.dojochina.Person;??



完整示例代碼:view

view plain copy to clipboard print ?
  1. //?classShort.js ??
  2. ??
  3. Ext.namespace('Ext.dojochina'); ??
  4. ??
  5. Ext.dojochina.Person?=?function(_cfg){Ext.apply(this,?_cfg);}; ??
  6. ??
  7. PN?=?Ext.dojochina.Person; ??
  8. ??
  9. PN.print?=?function(name,?sex){ ??
  10. ????var?p?=?new?PN({name:?name,?sex:?sex}); ??
  11. ????p.print(); ??
  12. }; ??
  13. ??
  14. Ext.apply(PN.prototype,?{ ??
  15. ????print:?function(){ ??
  16. ????????alert(String.format('姓名:?{0}?,?性別:?{1}',?this.name,?this.sex)); ??
  17. ????} ??
  18. });??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?>??
  2. <head>??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>??
  4. <title>類別名</title>??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/>??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script>??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script>??
  8. <script?type="text/javascript"?src="classShort.js"></script>??
  9. <script?type="text/javascript">??
  10. ??
  11. ????var?p?=?new?PN({name:'MC',?sex:'M'}); ??
  12. ????p.print(); ??
  13. ??
  14. ????var?t?=?new?Ext.dojochina.Person({name:'MacroChin',?sex:'Male'}); ??
  15. ????t.print(); ??
  16. ??
  17. </script>??
  18. </head>??
  19. <body>??
  20. </body>??
  21. </html>??



事件

定義:對(duì)于外界影響的反應(yīng),在ExtJS還支持事件隊(duì)列模式,由 Ext.util.Observable類支持。

完整示例代碼:view

view plain copy to clipboard print ?
  1. //?event.js ??
  2. ??
  3. Ext.namespace('Ext.dojochina'); ??
  4. ??
  5. Ext.dojochina.Person?=?function(){ ??
  6. ????this.addEvents( ??
  7. ????????'namechange', ??
  8. ????????'sexchange'??
  9. ????); ??
  10. }; ??
  11. ??
  12. Ext.extend(Ext.dojochina.Person,?Ext.util.Observable,?{ ??
  13. ????name:?''?, ??
  14. ????sex:?''?, ??
  15. ????setName:?function(_name){ ??
  16. ????????if(this.name?!=?_name){ ??
  17. ????????????this.fireEvent('namechange',?this,?this.name,?_name); ??
  18. ????????????this.name?=?_name; ??
  19. ????????} ??
  20. ????}, ??
  21. ????setSex:?function(_sex){ ??
  22. ????????if(this.sex?!=?_sex){ ??
  23. ????????????this.fireEvent('sexchange',?this,?this.sex,?_sex); ??
  24. ????????????this.sex?=?_sex; ??
  25. ????????} ??
  26. ????} ??
  27. });??


view plain copy to clipboard print ?
  1. <html?xmlns="http://www.w3.org/1999/xhtml"?> ??
  2. <head> ??
  3. <meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/> ??
  4. <title>事件</title> ??
  5. <link?rel="stylesheet"?type="text/css"?href="../extjs/resources/css/ext-all.css"?/> ??
  6. <script?type="text/javascript"?src="../extjs/adapter/ext/ext-base.js"></script> ??
  7. <script?type="text/javascript"?src="../extjs/ext-all.js"></script> ??
  8. <script?type="text/javascript"?src="event.js"></script> ??
  9. <script?type="text/javascript"> ??
  10. ??
  11. ????var?person?=?null; ??
  12. ??
  13. ????button_click?=?function(){ ??
  14. ????????person.setName(prompt('請(qǐng)輸入姓名',?'')); ??
  15. ????????person.setSex(prompt('請(qǐng)輸入性別',?'')); ??
  16. ????} ??
  17. ??
  18. ????Ext.onReady(function(){ ??
  19. ??
  20. ????????var?txt_name?=?Ext.get('txt_name'); ??
  21. ????????var?txt_sex?=?Ext.get('txt_sex'); ??
  22. ??
  23. ????????person?=?new?Ext.dojochina.Person(); ??
  24. ??
  25. ????????person.on('namechange',?function(person,?oldVal,?newVal){ ??
  26. ????????????txt_name.dom.value?=?newVal; ??
  27. ????????}); ??
  28. ??
  29. ????????person.on('sexchange',?function(person,?oldVal,?newVal){ ??
  30. ????????????txt_sex.dom.value?=?newVal; ??
  31. ????????}); ??
  32. ??
  33. ????????person.on('namechange',?function(person,?oldVal,?newVal){ ??
  34. ????????????document.title?=?newVal; ??
  35. ????????}); ??
  36. ??
  37. ????}); ??
  38. ??
  39. </script> ??
  40. </head> ??
  41. <body> ??
  42. ??
  43. 姓名:<input?type="text"?id="txt_name"?/>?<BR/> ??
  44. 性別:<input?type="text"?id="txt_sex"?/>?<BR/> ??
  45. <button?οnclick="button_click()">輸入</button> ??
  46. ??
  47. </body> ??
  48. </html>??



◆EXTJS的另幾種面向?qū)ο笤O(shè)計(jì)體現(xiàn)

GWT-EXT為JAVA程序員編寫EXTJS應(yīng)用提供了可能
EXTTLD為JSP程序員的標(biāo)簽化部署EXTJS提供了可能
EXTSharp為C#程序員編寫EXTJS的應(yīng)用提供了可能

http://www.risenshineclean.com/news/1978.html

相關(guān)文章:

  • 合肥網(wǎng)站建設(shè)推廣百度網(wǎng)站大全舊版
  • 十堰網(wǎng)站設(shè)計(jì)營(yíng)銷團(tuán)隊(duì)公司
  • 百度網(wǎng)站排名優(yōu)化軟件蘇州網(wǎng)站關(guān)鍵詞優(yōu)化推廣
  • 廣饒網(wǎng)站建設(shè)優(yōu)化設(shè)計(jì)七年級(jí)上冊(cè)數(shù)學(xué)答案
  • tlbb3官方網(wǎng)站慕容神器做的步驟網(wǎng)絡(luò)新聞發(fā)布平臺(tái)
  • 網(wǎng)站開發(fā)php和c語(yǔ)言區(qū)別seo優(yōu)化工作有哪些
  • 小微網(wǎng)站建設(shè)接單平臺(tái)上海知名網(wǎng)站制作公司
  • 如何做微信個(gè)人網(wǎng)站seo咨詢服務(wù)
  • 廣州網(wǎng)站設(shè)計(jì)制作公司抖音seo推廣
  • 如何建設(shè)自己的淘寶客網(wǎng)站2022年度最火關(guān)鍵詞
  • 做淘寶優(yōu)惠券推廣網(wǎng)站搜索數(shù)據(jù)
  • 凡科網(wǎng)站可以做seo優(yōu)化推廣軟件下載
  • 現(xiàn)在的網(wǎng)站開發(fā)用什么技術(shù)免費(fèi)域名申請(qǐng)網(wǎng)站大全
  • 佛山營(yíng)銷型網(wǎng)站建設(shè)上海網(wǎng)站建設(shè)咨詢
  • 中山三水網(wǎng)站建設(shè)網(wǎng)站推廣策劃書模板
  • 東陽(yáng)網(wǎng)站建設(shè)安卓?jī)?yōu)化大師官方下載
  • 如題,HTML如何將兩張圖片_一張放在網(wǎng)站頂部做背景,另一張放在尾部做背景?項(xiàng)目推廣渠道有哪些
  • 網(wǎng)站建設(shè)人員百度指數(shù)數(shù)據(jù)官網(wǎng)
  • 凡科網(wǎng)登錄官網(wǎng)seo關(guān)鍵詞排名優(yōu)化哪家好
  • 墊江網(wǎng)站開發(fā)djrckj百度云網(wǎng)盤搜索引擎入口
  • 做棋牌游戲網(wǎng)站賺錢嗎百度網(wǎng)頁(yè)游戲
  • 做甜點(diǎn)的網(wǎng)站百度競(jìng)價(jià)價(jià)格查詢
  • 住房建設(shè)部投訴網(wǎng)站免費(fèi)軟文網(wǎng)站
  • 購(gòu)物網(wǎng)站頁(yè)面設(shè)計(jì)思路北京網(wǎng)站優(yōu)化推廣方案
  • 扁平風(fēng)格 網(wǎng)站模板電商培訓(xùn)機(jī)構(gòu)靠譜嗎
  • 網(wǎng)站建設(shè)與運(yùn)營(yíng)成本深圳全網(wǎng)推廣公司
  • 鐵嶺做網(wǎng)站公司哪家好東營(yíng)優(yōu)化公司
  • 瀏陽(yáng)做網(wǎng)站推薦下載百度安裝到桌面
  • 自己電腦怎么做網(wǎng)站服務(wù)器寧波seo排名費(fèi)用
  • 需要做網(wǎng)站建設(shè)的行業(yè)有哪些色盲測(cè)試圖及答案大全