"html?v=<%= VERSION %>" 是什么意思?

What does "html?v=<%= VERSION %>" mean?

我很难找到答案。 基本上,?v=<%= VERSION %> 在下一行做什么?

'./components/home/home.html?v=<%= VERSION %>

如果有帮助,可以查看源文件here

或在这里:

import {Component, View} from 'angular2/angular2';
import {RouterLink} from 'angular2/router';

@Component({
  selector: 'component-1'
})
@View({
  templateUrl: './components/home/home.html?v=<%= VERSION %>',
  directives: [RouterLink]
})
export class Home {}

?v=<%= VERSION %>

缓存破坏的常用技巧。

关于主题的快速 google 结果:http://webassets.readthedocs.org/en/latest/expiring.html

我的猜测是这确实与 ASP 相似,因此是 Response.Write 方法的缩写。

<%= VERSION %>

等于

<%
Response.Write(VERSION)
%>

这一行就是用这个"write"来控制模板版本。