HTML.psuh的字符串拼接

1.在html.push中放置变量,变量名为itemid,用于设置成tr的id

html.psuh("<tr id=""+itemid+">")

2.在html.push中放置其余的属性,如width:450px; select(itemid)

html.push("<input style=\"width:150px\"  onclick=\"selectStandard("+itemid+");\"/>")

猜你喜欢

转载自blog.csdn.net/apacheuk/article/details/79994459
今日推荐