已采納回答 / 泉州梁朝偉
<body> ? ?<div id="t"> ? ?</div> ? ?<script> ? ?var textdiv = document.getElementById("t"); ? ?console.log(textdiv.nodeName+"/"+textdiv.nodeValue);//打印結果為:DIV/null ? ?var textnode =textdiv.childNodes[0]; ? ?console.log(textnode.nod...
2018-04-13
最贊回答 / 慕粉1554206971
我從網上找的例子中總結一下,你制定了一條規則,你自己做事的時候遵守了這條規則,是直調,你要求別人做事,而別人必須去調用你的規則并且在你的規則下做事,那么這個規則就是回調函數.
2018-04-10