2008-05-14

dojo and ajax

关键字: dojo ajax
XHR has limitations. The big one is that url: is not cross-domain: you can't submit the request outside of the current host (eg: to url:"http://google.com" ). It is a known limitation and a common mistake when getting excited about Ajax. dojo.xhrGet ...
2008-05-14

Dojo 与style相关的函数整理

关键字: dojo style
1)dojo.addClass(node: DomNode|String , classStr: String ) 添加某class到节点, var node=dojo.byId('divv'); dojo.addClass('divv', 'color'); dojo.addClass(node, 's1');   2)var bool = dojo.hasClass(node: DomNode|String , classStr: String ) ...
  特点:传入一个array, 和callback 函数,并用callback 函数循环遍历array. callback 函数: function(item[, index, array_alias]), item: 遍历到的array item. index: 当前item 的下标 array_alias: array 的别名   1)   dojo.filter (array, callbac ...
xushaoxun
搜索本博客
我的相册
C71f41f7-65f6-4553-ae3b-894557e71278-thumb
inter
共 2 张
最近加入圈子
存档
最新评论