随笔分类 - JavaScript 【基础】
js的学习
摘要:function collect(){ // 内容元素 const content = document.querySelector('.content') // 题目正则 const regexp = /\d+、(【..题】.*?)\n([\s\S]+?)参考答案:([A-Z]+)/ // 选项正
阅读全文
摘要:function getCSSPath(node) { let parts = []; while (node.parentElement) { let str = node.tagName.toLowerCase() if (node.id) { str += `#${node.id}`; par
阅读全文

浙公网安备 33010602011771号