这不起作用,静态 css 和 JavaScript 使用哈巴狗
this is not working, static css and JavaScript using pug
哈巴狗
html(lang="en")
head
meta(charset="UTF-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
title created with pug
body
//here this is css file not working
link(rel="stylesheet", source="app.css")
//here this is JavaScript file not working
script src="use.js"
h1#hello.my this is h1
p.hello my para
我已经为此使用了节点 js 文件,所以我只关心这个
我也是初学者,所以如果可能的话尽量给出简单的答案。
祝你有美好的一天!
这里是 link
和 script
标签的正确 pug 语法
link(rel='stylesheet' href='app.css')
script(src="use.js")
正确的哈巴狗评论以 //-
开头
html(lang="en")
head
meta(charset="UTF-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
title Created with pug
//- here is css
link(rel='stylesheet' href='app.css')
//- here is JavaScript
script(src="use.js")
body
h1#hello.my This is h1
p.hello My para
哈巴狗
html(lang="en")
head
meta(charset="UTF-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
title created with pug
body
//here this is css file not working
link(rel="stylesheet", source="app.css")
//here this is JavaScript file not working
script src="use.js"
h1#hello.my this is h1
p.hello my para
我已经为此使用了节点 js 文件,所以我只关心这个 我也是初学者,所以如果可能的话尽量给出简单的答案。 祝你有美好的一天!
这里是 link
和 script
标签的正确 pug 语法
link(rel='stylesheet' href='app.css')
script(src="use.js")
正确的哈巴狗评论以 //-
html(lang="en")
head
meta(charset="UTF-8")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="viewport", content="width=device-width, initial-scale=1.0")
title Created with pug
//- here is css
link(rel='stylesheet' href='app.css')
//- here is JavaScript
script(src="use.js")
body
h1#hello.my This is h1
p.hello My para