ExtAPI 下载地址如下,包含各个版本 
http://docs.sencha.com/misc/guides/offline_docs.html

1.使用工具HBuilder 
2.java 版本 8.0 
3.extjs 版本 6.2.0

注意顺序

  1. <!--
  2. 描述:引入主题样式文件
  3. -->
  4. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-gray\resources\theme-gray-all.css"/>
  5. <!--
  6. 描述:引入控制主题的js脚本
  7. -->
  8. <script src="extjs\build\classic\theme-gray\theme-gray.js" type="text/javascript" charset="utf-8"></script>
  9. <!--
  10. 描述:引入ExtBootstrap文件,这个文件会默认加载
  11. build->ext-all-debug.js
  12. -->
  13. <script src="extjs/ext-bootstrap.js" type="text/javascript" charset="utf-8"></script>
  14. <!--
  15. 描述:引入I18N 国际化文件
  16. -->
  17. <script src="extjs/build/classic/locale/locale-zh_CN.js" type="text/javascript" charset="utf-8"></script>

项目包结构

书写js代码绘制helloWorld项目

  1. <script type="text/javascript">
  2. Ext.onReady(function(){
  3. Ext.MessageBox.alert("欢迎","你好,欢迎来到ExtJS6.0!");
  4. });
  5. </script>

效果图

主题

更换其他主题的方法

theme-neptune主题

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-neptune\resources\theme-neptune-all.css"/>

效果图

theme-neptune-touch主题

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-neptune-touch\resources\theme-neptune-touch-all.css"/>

效果图

theme-triton主题

使用方法
  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-triton\resources\theme-triton-all.css"/>

效果图

theme-gray主题

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-gray\resources\theme-gray-all.css"/>

效果图

theme-crisp主题

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-crisp\resources\theme-crisp-all.css"/>

效果图

theme-aria主题

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-aria\resources\theme-aria-all.css"/>

效果图

theme-classic

使用方法

  1. <link rel="stylesheet" type="text/css" href="extjs\build\classic\theme-classic\resources\theme-classic-all.css"/>

效果图

ext-bootstrap.js

这个文件源码如下

  1. /**
  2. * Load the library located at the same path with this file
  3. * 此文件会默认自动加载ext-all-debug.js文件
  4. * 1.当主机名是localhost
  5. * 2.当主机名是ipv4地址
  6. * 3.协议是file协议
  7. * 4.带有debug参数的
  8. * 例如(http://foo/test.html?debug)
  9. *
  10. * 1.如果在url后加nodebug即可加载ext-all.js文件
  11. * 例如(http://foo/test.html?nodebug)
  12. */
  13. (function() {
  14. var scripts = document.getElementsByTagName('script'),
  15. localhostTests = [
  16. /^localhost$/,
  17. /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:\d{1,5})?\b/ // IP v4
  18. ],
  19. host = window.location.hostname,
  20. isDevelopment = null,
  21. queryString = window.location.search,
  22. test, path, i, ln, scriptSrc, match;
  23. for (i = 0, ln = scripts.length; i < ln; i++) {
  24. scriptSrc = scripts[i].src;
  25. match = scriptSrc.match(/ext-bootstrap\.js$/);
  26. if (match) {
  27. /**
  28. * use a path without the ext-bootstrap.js file on it. http://path/to/ext/ext-bootstrap.js will become
  29. * http://path/to/ext/
  30. */
  31. path = scriptSrc.substring(0, scriptSrc.length - match[0].length);
  32. break;
  33. }
  34. }
  35. if (isDevelopment === null) {
  36. for (i = 0, ln = localhostTests.length; i < ln; i++) {
  37. test = localhostTests[i];
  38. if (host.search(test) !== -1) {
  39. //host is localhost or an IP address
  40. isDevelopment = true;
  41. break;
  42. }
  43. }
  44. }
  45. if (isDevelopment === null && window.location.protocol === 'file:') {
  46. isDevelopment = true;
  47. }
  48. if (!isDevelopment && queryString.match('(\\?|&)debug') !== null) {
  49. //debug is present in the query string
  50. isDevelopment = true;
  51. } else if (isDevelopment && queryString.match('(\\?|&)nodebug') !== null) {
  52. //nodebug is present in the query string
  53. isDevelopment = false;
  54. }
  55. document.write('<script type="text/javascript" charset="UTF-8" src="' +
  56. path + 'build/ext-all' + (isDevelopment ? '-debug' : '') + '.js"></script>');
  57. })();

ExtJs 6.0+快速入门,ext-bootstrap.js文件的分析,各版本API下载(一)的更多相关文章

  1. ExtJs 6.0+快速入门,ext-bootstrap.js文件的分析,各版本API下载

    ExtJS6.0+快速入门+API下载地址 ExtAPI 下载地址如下,包含各个版本 http://docs.sencha.com/misc/guides/offline_docs.html 1.使用 ...

  2. ExtJS 4.2 教程-02:bootstrap.js 工作方式

    转载自起飞网,原文地址:http://www.qeefee.com/extjs-course-2-bootstrap-js ExtJS 4.2 教程-01:Hello ExtJS ExtJS 4.2 ...

  3. python3.5+django2.0快速入门(二)

    昨天写了python3.5+django2.0快速入门(一)今天将讲解配置数据库,创建模型,还有admin的后台管理. 配置数据库 我们打开mysite/mysite/settings.py这个文件. ...

  4. python3.5+django2.0快速入门(一)

    因为这篇教程需要用到anaconda的一些操作,如果还不懂anaconda的操作的同学可以看下这篇文章python 入门学习之anaconda篇. 创建python3+的开发环境 直接在终端输入:co ...

  5. TensorFlow 2.0 快速入门指南 | iBooker·ApacheCN

    原文:TensorFlow 2.0 Quick Start Guide 协议:CC BY-NC-SA 4.0 自豪地采用谷歌翻译 不要担心自己的形象,只关心如何实现目标.--<原则>,生活 ...

  6. bootstrap.js 文件使用指南

    介绍 使用 Bootstrap v3.3.7 时,需要引入三个脚本文件. https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.m ...

  7. vue cli3.0 封装组件全局引入js文件并发布到npm

    首先用 vue create创建一个项目 当前的项目目录是这样的: 首先需要创建一个 packages 目录,用来存放组件 然后将 src 目录改为 examples 用作示例 二.修改配置 启动项目 ...

  8. extjs 4.0.7 Desktop 替换claaes.js

    最近在学习Extjs 发现Demo 中有个Desktop的于是就尝试学习一下.结果发现怎么改都没效果后来偶然发现 默认采用的是classes.js 为压缩后的js 引入已经修改后的分开的js瞬间 一切 ...

  9. Thinkphp5.0快速入门笔记(2)

    学习来源与说明 https://www.kancloud.cn/thinkphp/thinkphp5_quickstart 测试与部署均在windows10下进行学习. 示例建立新的模块和控制器 在a ...

随机推荐

  1. java 获取当前进程id 线程id

    java  获取当前进程id  线程id RuntimeMXBean (Java Platform SE 8 ) https://docs.oracle.com/javase/8/docs/api/j ...

  2. python及numpy,pandas易混淆的点

    https://blog.csdn.net/happyhorizion/article/details/77894035 初接触python觉得及其友好(类似matlab),尤其是一些令人拍案叫绝不可 ...

  3. android ListView几个有用的属性

    1. stackFromBottom,设置为ture你做好的列表就会显示你列表的最下面 2. transciptMode,通过设置的控件transcriptMode属性可以将Android平台的控件( ...

  4. mysql误删表,无备份

    mysql误删表,无备份 1.操作步骤:https://blog.csdn.net/u011277123/article/details/78018513?tdsourcetag=s_pctim_ai ...

  5. HTML5开发——轻量级JSON存储解决方案Lawnchair.js

    Lawnchair是一个轻量级的移动应用程序数据持久化存储方案,同时也是客户端JSON文档存储方法,优点是短小,语法简洁,扩展性比较好. 现在做HTML5移动应用除了LocalStorage的兼容性比 ...

  6. Bootstrap fileinput v2.0(ssm版)

    前言bootstrap fileinput是一个很好的文件上传插件.但是官方不出api,这就尴尬了.百度一下,每个人写法都不相同,好多代码本身都是错的.我修改后才能跑起来.综上所述:所以今天我摸索了一 ...

  7. HDU - 2844 Coins(多重背包+完全背包)

    题意 给n个币的价值和其数量,问能组合成\(1-m\)中多少个不同的值. 分析 对\(c[i]*a[i]>=m\)的币,相当于完全背包:\(c[i]*a[i]<m\)的币则是多重背包,考虑 ...

  8. linux sar命令详解及使用

    sar(System Activity Reporter系统活动情况报告)是目前 Linux 上最为全面的系统性能分析工具之一,可以从多方面对系统的活动进行报告,包括:文件的读写情况.系统调用的使用情 ...

  9. react 修改循环列表的当前单个子项状态:思路 拿原始state数据更改,再做请求

    handleLike(item,index){ var id = item.id; _ENV.post( _ENV.HOST+'/communion/video-up', {'user_id':loc ...

  10. SoapUI、Jmeter、Postman三种接口测试工具的比较

    1.  用例组织方式 首先是用例组织方式的不同,不同的目录结构与组织方式代表不同工具的测试思想,学习一个测试工具应该首先了解其组织方式. SoapUI的组织方式如下图,最上层是WorkSpace,每个 ...