js替換html內(nèi)容 js怎么給append的元素綁定事件?
js怎么給append的元素綁定事件?jqueryappend函數(shù)?append:向每個匹配的元素添加內(nèi)容。例如:HTML代碼:<P>我想說:</P> jQuery代碼:$(“P”)。
js怎么給append的元素綁定事件?
jqueryappend函數(shù)?
append:向每個匹配的元素添加內(nèi)容。例如:HTML代碼:<P>我想說:</P> jQuery代碼:$(“P”)。追加(“<B>hello</B>”)結(jié)果:<P>我想說:<B>hello</B></P>