loading - Loading动画生成器

Loading控件,此控件是ui控件,已经生成了相关的html结构 ,为css3实现,只要传入父节点会生效

如:

加载更多控件

Allocate

ui loading控件所在脚本 {lib}ui/loading/loading.js

页面结构如下:

<html>
    <body>
        <div id="loading"></div>
    </body>
</html>

添加标签切换控件依赖文件如下

var f = function(){
    var _  = NEJ.P,
        _e = _('nej.e'),
        _tu = _('t.u');
        _p = _('nej.ui');

    // 初始化Loading插件
    var _loading = _p._$$Loading._$allocate({parent:_e._$get("loading")});
    //启动代码高亮 
    _tu._$processCode();
}
define(['{lib}ui/loading/loading.js', '{pro}js/extend.js'],f);

Explain

参数 parent 要插入的父节点 更多的参数信息请参照loading.js api说明

Recycle

loading.$recycle();

Loading external interface

none..

Known Issues

Demo

Loading控件demo

© 1997-2013 Netease. All Rights Reserved.
comments powered by Disqus