16 lines
502 B
Plaintext
16 lines
502 B
Plaintext
1.如何做到图片与文字一起上传,图片才做保存行为?
|
||
本地拿到图片的hash值给后端接口
|
||
src/modules/img/img.service.ts
|
||
imgAdd函数中
|
||
|
||
2.上传后,图片如何被访问?
|
||
后端设置静态资源访问路径。
|
||
src/app.module.ts
|
||
添加在@Module装饰中
|
||
|
||
3.对导航栏列表重复获取使用redis缓存
|
||
|
||
4.前端
|
||
|
||
5.使用cdn打包,出现资源加载失败,该如何重新加载js脚本
|
||
什么时候重新加载?如何重新加载? |