在 Dojo 中,创建 DOM 节点相当容易,无需手动输入 HTML 标签和属性。这是通过 dojo.create()
完成的。
jQuery 中的等价物是什么?
最佳答案
类似dojo.create()的签名
;
$('<input />', {
name: 'foo',
value: 'bar',
id: 'fish'
});
有关详细信息,请参阅 the documentation for jQuery(html, props)
关于jquery - dojo.create() 的 jQuery 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8895922/