Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在version我的静态文件中添加一个参数(用于处理缓存问题)。
version
我该怎么做?我认为HtmlHlper::css或HtmlHlper::script没有得到查询字符串...
HtmlHlper::css
HtmlHlper::script
为什么你这么想?你试过了吗?
$this->Html->script('/myfile.css?v=123&somequerystring=foo&even=more');
应该管用