var li = $("<li>",{title:"123",css:{"background":"red"}});
li.appendTo($("ul"))
str = "hello, <b>my name is</b> jQuery.",
html = $.parseHTML( str ),
console.log(html);
标签:back 源码 appendto gpo css title end hello ons
var li = $("<li>",{title:"123",css:{"background":"red"}});
li.appendTo($("ul"))
str = "hello, <b>my name is</b> jQuery.",
html = $.parseHTML( str ),
console.log(html);
标签:back 源码 appendto gpo css title end hello ons
原文地址:http://www.cnblogs.com/lk1186578324/p/8030118.html