廢話不多說(shuō)了,直接給大家貼代碼了,關(guān)鍵代碼如下所述:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title> new document </title><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><style type="text/css"></style><script type="text/javascript" src="jquery-1.7.1.min.js"></script><script type="text/javascript">window.onload=function(){document.getElementById('btnOk').onclick=function(){$('div').html('php');};};</script></head><body><div id="div1">div1</div><hr/><div>div2</div><hr/><input type="button" id='btnOk' value='確定' /></body></html>詳細(xì)解釋:

以上所述是小編給大家介紹的jQuery基本選擇器之標(biāo)簽名選擇器的相關(guān)資料,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)歡迎給我留言,小編會(huì)及時(shí)回復(fù)大家的,在此也非常感謝大家對(duì)武林網(wǎng)網(wǎng)站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注