有的时候用这两个似乎都可以? 具体有什么不同呢?
asset()方法用于引入 CSS/JavaScript/images 等文件,文件必须存放在public文件目录下。url()方法生成一个完整的网址。
参考:What is the difference between the two and in which cases I should use one or another?
2 回答1.4k 阅读✓ 已解决
4 回答968 阅读
1 回答649 阅读✓ 已解决
2 回答619 阅读
604 阅读
一般asset用于引用静态文件 css js img 等