![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
JavaScript
别惹轩轩
没事会分享一些自己踩过的坑
展开
-
PHP,HTML,js弹窗返回上一页
PHP,HTML,js弹窗返回上一页 PHP弹窗返回上一页 <?php echo "<script>alert('暂无数据');window.history.back(-1);</script>";die; ?> js链接式返回上第一页 <script> <a href="javascript:history.go(-1)">返回上一步</a> <a href="<%=Request.ServerVariables(原创 2021-03-20 13:53:04 · 855 阅读 · 0 评论 -
PHP使用js上传文件限制文件类型的方法
input限制上传文件的类型 1.上传.csv格式 <input text="file" accept=".csv" /> 2.上传.xls格式 <input text="file" accept="application/vnd.ms-excel"/> 3.上传.xslx格式 <input text="fiel" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>原创 2021-03-20 11:17:14 · 161 阅读 · 0 评论