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
...
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 ...
- 浏览: 5177 次
- 性别:

- 来自: 厦门

- 详细资料
搜索本博客
我的相册
inter
共 2 张
共 2 张
最近加入圈子
最新评论
-
dojo and ajax
很有用的函数!!
-- by cscs31 -
Dojo 与style相关的函数 ...
Lz能加上一些注解和例子就更好了:)
-- by cscs31






评论排行榜