study note for dojo

前端之家收集整理的这篇文章主要介绍了study note for dojo前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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控件的自定义属性
原文链接:https://www.f2er.com/dojo/291163.html

猜你在找的Dojo相关文章