小编Tra*_*ler的帖子

如何在 pug 中通过 id 使用获取元素

我的哈巴狗

span
  a#survey.afont(href='/disease-description/Endocrinology')= disease_desc.Specialities[i].name
Run Code Online (Sandbox Code Playgroud)

我的js,

  var name  = document.getElementById('survey');
  console.log(name);
Run Code Online (Sandbox Code Playgroud)

当我尝试安慰 div id 的值时,它的值为空。有人可以建议我帮助我在哪里做错。

html javascript express pug

2
推荐指数
1
解决办法
5400
查看次数

标签 统计

express ×1

html ×1

javascript ×1

pug ×1