原始的js代码和jquery对比体会
Even a task as simple as this can be complicated without jQuery at our disposal. In plain JavaScript, we could add the highlightedclass as shown in the following code snippet: 代码如下: [removed] = function() { var divs = document.getElementsByTagName(‘div’); for (var i = 0; i < divs.length; i++) {
暂无评论