标签: javascript html head
是否可以在加载页面后使用JavaScript在<head>内修改?例如,如果我为外部样式表添加元素,那会有效吗?或者,如果我更改<title>,是否会反映出来?如果没有,有没有办法做到这一点?
<head>
<title>
答案 0 :(得分:6)
绝对
虽然使用document.title = "new title here";
document.title = "new title here";