1. 程式人生 > >2018/11/1 渡課每日學習總結

2018/11/1 渡課每日學習總結

var jq = new Object(); jq.element = null; jq.html = function (content) { this.element.innerHTML = content; return this; } jq.css = function(property, value) { this.element.style[property] = value; return this; } jq.element = document.getElementById("baiduEle"); jq.html("百度").css("color"
, "red");