【发布时间】:2018-06-01 03:44:19
【问题描述】:
为什么当我们这样放置行时页面加载速度更快:
script(src="/Scripts/jquery.timeago.js")
在我们的标签末尾而不是在
说:
//Jade file with JQuery
!!! 5
html(lang="en")
head
title Holamundo!
script(type='text/javascript', src='http://code.jquery.com/jquery-1.9.1.js')
body
h1#headTitle Hello, World
p#content This is an example of Jade.
script
$('#headTitle').click(function() {
$(this).hide();
});
$('#content').click(function() {
$(this).hide();
});
【问题讨论】:
标签: javascript html node.js express pug