前端开发的一些总结

整理下笔记,补充以前的一些经验,以免时间长了又会忘记。

dojo 框架

  1. onChange 立即触发:intermediateChanges

  2. parser的用法:在该dom节点中找到对象实例
    parser.parse(node, {
    noStart: !this._earlyTemplatedStartup,
    template: true,
    inherited: {dir: this.dir, lang: this.lang, textDir: this.textDir},
    propsThis: this, // so data-dojo-props of widgets in the template can reference “this” to refer to me
    contextRequire: this.contextRequire,
    scope: “dojo” // even in multi-version mode templates use dojoType/data-dojo-type
    }).then(lang.hitch(this, function(widgets){
    this._startupWidgets = widgets;

  3. setter.apply(this, Array.prototype.slice.call(arguments, 1));

  4. throw new Error(“错误内容 It works!”);

  5. 要注意的问题
    0||undefined==undefined

  6. // Flag to enable support for textdir attribute
    has.add(“dojo-bidi”, false);

  7. Selector.superclass.insertNodes.call(this, data, before, anchor);

  8. for(var j = 0; j < type.length; ++j){
    if(type[j] in this.accept){
    flag = true;
    break;
    }
    }

ie 兼容性

  1. ie 10 崩溃:
    var a = []; a.length = 100; a.splice(17,17);
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值