$(function () { //設置性操做:能夠鏈式編程 //獲取性操做,不能鏈式,由於獲取性操做,數值,字符串,返回值是否是一個jq對象。 $("div").width(200).height(200).css("backgroundColor", "pink").width(); });