我们的只用在文件里面引用一个CKEditor的js文件--CKEditor目录下的ckeditor.js文件, 该文件会完成后续的所有的CKEidtor依赖的js文件的加载.

所依赖的js文件加载顺序如下

    <script src="/Scripts/CKEditor/CKEditor.js"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/loader.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/event.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/editor_basic.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/env.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/ckeditor_basic.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/tools.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dtd.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/event.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/domobject.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/node.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/window.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/document.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/nodelist.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/element.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/documentfragment.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/walker.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/range.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/iterator.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/command.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/ckeditor_base.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/config.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/filter.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/focusmanager.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/keystrokehandler.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/lang.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/scriptloader.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/resourcemanager.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/plugins.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/ui.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/editor.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/basicwriter.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/node.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/comment.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/text.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/cdata.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/fragment.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/filter.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmldataprocessor.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/htmlparser/element.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/template.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/ckeditor.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/creators/inline.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/creators/themedui.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/editable.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/selection.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/style.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/comment.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/elementpath.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/text.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/dom/rangelist.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/skin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/core/_bootstrap.js" type="text/javascript"></script>
<style>
.cke {
visibility: hidden;
}
</style>
<meta name="viewport" content="width=device-width">
<script src="http://localhost:9673/Scripts/CKEditor/config.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/skins/moono/skin.js" type="text/javascript"></script>
<link href="http://localhost:9673/Scripts/CKEditor/skins/moono/editor_ie.css" rel="stylesheet" type="text/css">
<script src="http://localhost:9673/Scripts/CKEditor/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/styles.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/dialogui/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/dialog/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/about/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/a11yhelp/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/dialogadvtab/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/basicstyles/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/bidi/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/blockquote/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/clipboard/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/button/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/panelbutton/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/panel/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/floatpanel/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/colorbutton/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/colordialog/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/templates/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/menu/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/contextmenu/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/div/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/resize/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/toolbar/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/elementspath/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/enterkey/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/entities/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/popup/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/filebrowser/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/find/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/fakeobjects/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/flash/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/floatingspace/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/listblock/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/richcombo/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/font/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/forms/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/format/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/horizontalrule/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/htmlwriter/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/iframe/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/wysiwygarea/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/image/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/indent/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/indentblock/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/indentlist/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/smiley/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/justify/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/menubutton/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/language/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/link/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/list/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/liststyle/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/magicline/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/maximize/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/newpage/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pagebreak/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pastetext/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pastefromword/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/preview/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/print/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/removeformat/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/save/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/selectall/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/showblocks/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/showborders/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/sourcearea/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/specialchar/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/scayt/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/stylescombo/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/tab/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/table/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/tabletools/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/undo/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/wsc/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/aaa/plugin.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/about/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/basicstyles/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/bidi/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/blockquote/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/clipboard/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/button/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/colorbutton/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/colordialog/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/templates/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/contextmenu/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/div/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/toolbar/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/elementspath/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/find/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/fakeobjects/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/flash/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/font/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/forms/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/format/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/horizontalrule/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/iframe/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/image/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/indent/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/smiley/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/justify/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/language/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/link/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/list/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/liststyle/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/magicline/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/maximize/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/newpage/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pagebreak/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pastetext/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/pastefromword/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/preview/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/print/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/removeformat/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/save/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/selectall/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/showblocks/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/sourcearea/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/specialchar/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/scayt/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/stylescombo/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/table/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/undo/lang/zh-cn.js" type="text/javascript"></script>
<script src="http://localhost:9673/Scripts/CKEditor/plugins/wsc/lang/zh-cn.js" type="text/javascript"></script>

以样式为分界点, 以上的部分为CKEditor所依赖的核心文件.他们全部放在CORE文件夹中.由ckeditor.js引发加载,具体由core/loader.js完成整个加载逻辑

//ckeditor.js中的代码片段
script.src = CKEDITOR.getUrl('core/loader.js');
document.body.appendChild(script); //core/loader.js中的代码片段
CKEDITOR.loader = ( function() {.....})();

样式以下的部分就是配置文件, 皮肤, 和插件的加载.是在页面加载完成事件触发以后开始加载的,具体是谁引发的加载不是太清楚,请高手指点,所以我们在CKEDITOR.replace()方法里面写的配置文件要优先于config.js里面的配置.

核心部分的加载也就是创建CKEditor对象的过程.
CKEditor对象时一个单例对象, 详情如下

window.CKEDITOR || (window.CKEDITOR = (function () { ..创建CKEditor对象的过程.. })())

但这个不是说我们在页面上只能创建一个CKEditor编辑器,实际上我们可以这样

    <div id="editor01"></div>
<div id="editor02"></div>
<script type="text/javascript">
(function () {
var editor01 = CKEDITOR.replace('editor01');
var editor02 = CKEDITOR.replace('editor02');
})(); </script>

页面中所有的CKEditor编辑器实例都由CKEditor对象统一管理.我们还可以这样调用这些实例

CKEDITOR.instances['editor01'].name;
CKEDITOR.instances['editor02'].name;

而我们对CKEditor的扩展主要是在config.js 这个文件, 也就是在加载完核心文件后加载的第一个js文件.
这种扩展配置的方式是直接修改的config.js文件,  不是太符合对象的封装原则, 不过修改起来倒是很方便.
config.js文件是在初始化CKEDITOR.editor对象的时候被加载的,所以我们的配置也就一起被加载了.
推荐的做法是使用CKDitor.replace方法,扩展和配置CKEditor,这里面的配置优先级别也高于config.js里面的配置

CKEDITOR.replace( 'editor1',
{
extraPlugins = 'myplugin1,myplugin2',//扩展自己的插件
//下面是CKEditor各种属性配置.
toolbar :
[
['Styles', 'Format'],
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', '-', 'About']
]
});

Ckeditor 的加载顺序的更多相关文章

  1. web.xml加载顺序

    一 1.启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取<listener>和<context-param>两个结点. 2.紧急着,容创建一个Ser ...

  2. web.xml文件加载顺序

    1.启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取<listener>和<context-param>两个结点. 2.紧急着,容创建一个Servl ...

  3. web.xml 中的listener、 filter、servlet 加载顺序及其详解

    在项目中总会遇到一些关于加载的优先级问题,近期也同样遇到过类似的,所以自己查找资料总结了下,下面有些是转载其他人的,毕竟人家写的不错,自己也就不重复造轮子了,只是略加点了自己的修饰. 首先可以肯定的是 ...

  4. css样式加载顺序及覆盖顺序深入理解

    注:内容转载 很多的新手朋友们对css样式加载顺序和覆盖顺序的理解有所偏差,下面用示例为大家详细的介绍下,感兴趣的朋友不要错过 { height: 100%; width: 200; position ...

  5. Java---类加载机制,构造方法,静态变量,(静态)代码块,父类,变量加载顺序

    直接上代码: 代码1: public class ConstroctTest { private static ConstroctTest test = new ConstroctTest(); // ...

  6. DOM加载顺序

    最近一直在困扰dom的加载顺序问题,经常会遇到以为绑定好的事件不响应等情况,一头雾水,直到请教了周围的同事,才发现了解dom的加载顺序是多么的重要. 关于这个问题,其实网上已经有一些介绍,但是我觉得并 ...

  7. PHP 依赖注入,从此不再考虑加载顺序

    说这个话题之前先讲一个比较高端的思想--'依赖倒置原则' "依赖倒置是一种软件设计思想,在传统软件中,上层代码依赖于下层代码,当下层代码有所改动时,上层代码也要相应进行改动,因此维护成本较高 ...

  8. MVC中 _ViewStart _Layout Index三个页面中的加载顺序

    MVC学习中忽然想到一个问题.. 在访问一个Index.cshtml页面时, MVC的加载顺序是怎么样的呢? 首先说下我的结论 . _ViewStart.cshtml . Index.cshtml . ...

  9. WebForm中搭配母版页和用户控件页时候的事件加载顺序

    在生产环境中,一个内容页(aspx)可能会包含数个用户控件(ascx),而每个控件可能都会涉及到数据库访问. 如果在内容页.母版页.控件页中各自使用自己的数据库访问方法,会造成很大的运行成本. 这样的 ...

随机推荐

  1. [.NET 4.5] ADO.NET / ASP.NET 使用 Async 和 Await 异步 存取数据库

    此为文章备份,原文出处(我的网站)  [.NET 4.5] ADO.NET / ASP.NET 使用 Async 和 Await 异步 存取数据库 http://www.dotblogs.com.tw ...

  2. python之poplib库

    pop3能实现访问远程主机下载新的邮件或者下载后删掉这些邮件.不支持多信箱,也不能提供持久稳定的邮件认证.也就是说不能使用pop3来作为邮件同步协议. poplib支持多个认证方法.最普遍的是基本的用 ...

  3. 安装boost1.57.0__注意之前mgiza似乎因为boost没有安装也没有完全编译成功

    首先下载(废话) 解压, ./bootstrap.sh 之后在运行b2 ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link= ...

  4. 菜鸟学习Spring——60s配置XML方法实现简单AOP

    一.概述. 上一篇博客讲述了用注解的形式实现AOP现在讲述另外一种AOP实现的方式利用XML来实现AOP. 二.代码演示. 准备工作参照上一篇博客<菜鸟学习Spring--60s使用annota ...

  5. brew mac osx 上软件包管理工具

    今天推荐 Mac OSX 下,方便高效的包管理工具 brew brew 的全名叫做 Homebrew 它的功能类似于 ubuntu 下同下 apt-get ,或者 Cent OS 下的 yum 等包管 ...

  6. 九度oj 1541 二叉树

    原题链接:http://ac.jobdu.com/problem.php?pid=1541 简答题如下: #include<algorithm> #include<iostream& ...

  7. Newtonsoft.Json版本冲突时参考解决方案

    如果同一项目中不同第三方类库分别使用了不同版本的Newtonsoft.Json的情况下,可以在配置文件中添加以下节点,将0.0.0.0-9.0.0.0此区间的Newtonsoft.Json使用全部强制 ...

  8. 一个.net程序员教你使用less

    我是一个.net 程序员,虽然说一直做后台,但是web 前端也会去学,虽然说技术只是层窗户纸,但是像我这种多动症患者,不捅破我心难受啊! 好!废话不多提,下面直接正题,至于less 是什么这里不多讲因 ...

  9. libevent 信号示例

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 ...

  10. 调整maven配置文件

    maven的配置文件位置:maven安装位置\conf\settings.xml. 这次调整maven的配置文件主要解决三个问题: 调整本地依赖库位置 设置代理 添加远程资源库镜像节点 调整本地依赖库 ...