随笔分类 - 常规知识
前端的一些常规知识和方法
摘要:##1、在项目根目录中加入此文件 https://files.cnblogs.com/files/huihuihero/.prettierrc.js ![](https://img2023.cnblogs.com/blog/1669868/202308/1669868-202308071907030
阅读全文
摘要:在上传文件的时候,需要限制指定的文件类型。 <input type="file" accept="image/*" /> accept表示可以上传文件类型,image表示图片,*表示所有支持的格式。accept暂时只支持type="file" zip rar zip是accept=".applica
阅读全文