云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > extjs6学习

extjs6学习

  • 62 次阅读
  • 3 次下载
  • 2025/12/2 20:29:37

12. * --time, -ti - Display the execution time after executing all commands 13.

14. Categories

15. * app - Perform various application build processes

16. * compass - Wraps execution of compass for sass compilation

17. * compile - Compile sources to produce concatenated output and metadata 18. * cordova - Manage Cmd/Cordova integration 19. * fs - Utility commands to work with files

20. * generate - Generates models, controllers, etc. or an entire application

21. * manifest - Extract class metadata

22. * package - Manages local and remote packages 23. * phonegap - Manage Cmd/PhoneGap integration

24. * repository - Manage local repository and remote repository connections 25. * theme - Commands for low-level operations on themes 26. * web - Manages a simple HTTP file server 27.

28. Commands

29. * ant - Invoke Ant with helpful properties back to Sencha Cmd 30. * build - Builds a project from a legacy JSB3 file.

31. * config - Load a properties file or sets a configuration property 32. * help - Displays help for commands

33. * js - Executes arbitrary JavaScript file(s) 34. * upgrade - Upgrades Sencha Cmd

35. * which - Displays the path to the current version of Sencha Cmd

命令如下: sencha -sdk /这里是你的sdk路径/ generate app MyApp 你的App的路径。如 sencha -sdk D:\\ext-6.0.0-gpl\\ext-6.0.0 generate app MyExt d:\\MyExt

sencha generate app -ext -classic MyAppName ./MyAppPath sencha generate app -ext -modern MyAppName ./MyAppPath

启动server: 默认当前目录

sencha web start(stop) sencha web -port 8000 stop 指定目录:

sencha web start -map foo=/path/to/foo,bar=/another/path

http://localhost:8000/foo

当类文件移动目录时,需要,sencha app watch 执行一次,这样,类名和路径的关系会写入到classic.json文件中,根据类名,找路径,得到加载的位置,如下:

{\classic/src/view/main2/List.js\33},{\c/view/main/Main.js\33],\

Build后,原html执行:

在production下的html执行如下:

生成一个app.js,很大,包含所有js,不需要从服务端再拿

由于js全部拿到客户端了,Classic.json中不再有类和路径的定义,小了不少 需要的资源,可能需要手动移动位置 总结:

4、 开发阶段:

Classic.json有类和路径、引用的定义,可以需要时,再加载 提示找不到js时,需要watch一下,重新生成该文件 5、 Build后

所有js放入到app.js文件,classic.json小很到

15. 组件使用

弹出window 基于 Ext.window.Window

Items 内容基于panel

16. Extjs 5 客户端,如何请求找到类的

App.json工程配置文件

Bootstrap.json (抓包,看)

问史超:js如何写到这个json文件中的?

验证是基于类名的路径,进行解析的,如下,移动:

在抓包中,bootstrap.json :

仍然是来的类,

但程序可以运行,说明类ExtFrame.view.login2.Login,解析为 App\\view\\login2\\login.js 默认的解析方法

17. 史超登录方法(注意 listern中scope 【函数查找范围的使用】)

loginController.js1 调用 login方法 this.login({ data: form.getValues(), scope: this, success: 'onLoginSuccess', 触发,返回 root.js failure: 'onLoginFailure' })本地的方法:'onLoginSuccess'onLoginFailure'Login: 成功 调onLoginSuccessLogin.js1 调用 按钮事件Root.js1 new login 窗体,监听login调用,调用 onlogin方法 this.showUI(userId, userName, userOrgs);注:注意scope 使用,定义函数的范围注:返回 root.js的目的,是关闭在root中打开的窗体Scope参数说明:

this.login = new ExtFrame.view.login.Login({

session: session, listeners: {

scope: this, login: 'onLogin' }

搜索更多关于: extjs6学习 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

12. * --time, -ti - Display the execution time after executing all commands 13. 14. Categories 15. * app - Perform various application build processes 16. * compass - Wraps execution of compass for sass compilation 17. * compile - Compile sources to produce concatenated output and metadata 18. * cordova - Manage Cmd/Cordova integration 19.

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com