5/12/2016

jQuery的其它函數介紹2

jQuery還可以用selector來指定parent or child

parent 的用法就是若指定#target1後,此id的上一個element就會中所給予的class


child 的用法就是若指定#target1後,此id的下一個element就會中所給予的class



jQery還可以指定某特定class的第nth個element,給予指定class

或是指定某特定class的偶、單數的elements,給予指定class

也可以把body的內容也加進來加入特效。








5/08/2016

工作 新進人員保險

新進人員保險

健保(含母)

勞保 自提3%,可扣除所得稅

團保(含父母,130/month), 內容住院醫療給付1000/day

jQuery的其它函數介紹

Remove Classes from an element with jQuery 
jQuery可以add 也可以remove
在script裏面下removeClass就可以把該特效移除








Change the CSS of an Element Using jQuery
使用jQuery還可以改變指定element的屬性
使用.css("屬性","值")












結果 #target1變成紅字





















Disable an Element Using jQuery
使用另一函數來關閉CSS的屬性效果 .prop()



















該指定id 就會關閉其效果




Change Text Inside an Element Using jQuery
使用.html() 或是 .text()可以改變element裏面的文字
用法如下



















5/06/2016

鎖定目標來下jQuery+指定by "type", "class","id"

jQuery是目前最常用的函式庫,所以學就對了

使用jQuery的特效為
先在script裏面使用document的function來宣告使用jQuery的函式庫如下範例
可以將指定的html或CSS加入"動作" "跳動" "抖動"等一些特效









接著再指定(select)所要變化的"type","class","id"
使用type可直接用
唯使用class時,要在前面加  .   



指定by "id"
先把特定的element標id














再從script裏面指定該id
把jQuery的class下給該id,前面要加#







































~我可以先不工作六個月,專心學javascript嗎?~

5/05/2016

use jQuery's funcions addClass

addClass is one of the functions of jQeury library

addClass is use for add class to certain elements










so that all elements named "button" will apply the property of "animated and bounce"


we can see the displayed buttons are jumping.



我確診了COVID-19 怎麼會?

 一直自認為天選之人的我,終究還是感染COVID-19,  我是怎麼感染上的? 應該是家人之間互相傳染的 感染上有什麼症狀? 初期會覺得喉嚨怪怪地,然後一症狀就會愈來愈明顯 看診有哪些步驟? 先打電話到診所說有快篩陽,要約視訊看診,先西醫看診並上傳給衛生局,拿到居隔單,掛中醫申請...