加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

study note for dojo

发布时间:2020-12-16 21:27:03 所属栏目:百科 来源:网络整理
导读:1."dojo/query" is very important when you want to get elements' attributes from your document,and it's often faster. 2.The codes below are necessary for us to build modular viewer and controller code for mvc applications: var dojoConfig =

1."dojo/query" is very important when you want to get elements'attributesfrom your document,and it's often faster.

2.The codes below are necessary for us to build modular viewer and controller code for mvc applications:

    var dojoConfig = {
        async: true,// This code registers the correct location of the "demo"
        // package so we can load Dojo from the CDN whilst still
        // being able to load local modules
        packages: [{
            name: "demo",location: location.pathname.replace(//[^/]*$/,'') + '/demo'
        }]
    };
3.
  • data-dojo-config:取代了原来的dojoConfig,用以配置dojo库的各项参数
  • data-dojo-type:取代了原来的dojoType属性,用以指定所用的dojo对象类型
  • data-dojo-props:取代了原来所有初始化dojo控件的自定义属性。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读