<script>
const str = 'https://bs-cdc.ecust.edu.cn/';
console.log($(`[href=${str}]`));
</script>
为什么这段代码会报错? 有没有什么解决方案?
<script>
const str = 'https://bs-cdc.ecust.edu.cn/';
console.log($(`[href=${str}]`));
</script>
为什么这段代码会报错? 有没有什么解决方案?
13 回答12.9k 阅读
7 回答2.1k 阅读
3 回答1.3k 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
6 回答1.2k 阅读✓ 已解决
6 回答1.1k 阅读
3 回答1.3k 阅读✓ 已解决
加多一个单引号: