鋒利的jQuery讀書筆記(二)

第二章 jQuery選擇器 1 css選擇器 2 優良的代碼風格,網頁內容和行爲分離 jQuery Demo 3 document,getElementById(「tt」).style.color=「red」;//在id爲tt的元素不存在時將會報錯 $("#tt").css(「color」,「red」);//在id爲tt的元素不存在時不會報錯 注意: KaTeX parse error: Expe
相關文章
相關標籤/搜索