dojo/dom-construct的create方法
来源:互联网 发布:尼格罗人种知乎 编辑:程序博客网 时间:2024/05/22 14:16
create(tag, attrs, refNode, pos)
A string of the element to create (eg: "div", "a", "p", "li", "script", "br"), or an existing DOM node to process.
attrsObjectAn object-hash of attributes to set on the newly created node. Can be null, if you don't want to set any attributes/styles. See: dojo.setAttr
for a description of available attributes.
Optional reference node. Used by dojo.place
to place the newly created node somewhere in the dom relative to refNode. Can be a DomNode reference or String ID of a node.
Optional positional reference. Defaults to "last" by way of dojo.place
, though can be set to "first","after","before","last", "replace" or "only" to further control the placement of the new node relative to the refNode. 'refNode' is required if a 'pos' is specified.yis
第四个参数pos的可选值有6个:first last before after replace only
前两个参数为必须的,后两个参数可选。
lz的唠叨:今天使用该method时总也得不到想要的结果,最后发现是因为页面和脚本中的id不一致。
现在想来这个问题是可以通过查看firebug中的dom解决的。其实往往犯得都是这样的小错误,以后检查时也要注意往这方面思考。
- dojo/dom-construct的create方法
- dojo中的dojo/dom-construct
- dojo/dom-construct
- dojo 的DOM操作 dojo/dom
- dojo/dom-attr的用法
- dojo DOM
- dojo中的dojo/dom-class
- dojo中的dojo/dom-style
- dojo中的dojo/dom-attr
- Dom operation in Dojo
- dojo之Dom工具
- dojo dom-form模块
- dojo/dom-class用法
- Dojo入门:DOM操作
- dojo dom操作
- dojo/dom源码学习
- Dojo DOM 函数
- dojo:dom函数
- 在A20上演示老罗的Android硬件抽象层(HAL)概要介绍和学习计划5--关于APP部分
- 题目1384:二维数组中的查找 --九度-online judge
- Use Watir-WebDriver behind proxy
- 编程中第一件事情,就是对象的生命周期管理问题
- 类的构造与析构
- dojo/dom-construct的create方法
- Poj 2800 Joseph's Problem - 找规律
- Android监听器之监听短信发送消息实例
- Linux中的gmtime和localtime,mktime算法
- 试试贴代码
- Servlet获取android POST数据乱码的解决办法
- Qt Creator仿VA for VS2012的scheme
- 北向接口与南向接口
- BlendFunc颜色混合