dojo学习

1手动解析dijit部件

View Code

 

使用代理进行跨域访问

View Code
 dojo.xhrPost({url:"proxy.ashx?https://192.168.206.130/sharing/generateToken",postData : {

                username : "dubaokun",

                password : "dubaokun",

                ip : "",

                referer : "",

                client : "requestip",

                expiration : 525600000,

                f : "json"

            }}).then(function(res){

                console.log(res);

            },function(res){

                console.log(res);

            })

        })

 

  

 

 

     

你可能感兴趣的:(dojo)