- 博客(5)
- 收藏
- 关注
原创 WebSocket
项目需求最近研究了一下WebSocket,可以说是很强大的了。下面贴出在项目中用到的代码: 1.路径 //localhost function routePath() { var reg = /mbfz.bjzhyy.org/g, url = window.location.href, reg1 = /https:/, path = {}; path = { pat...
2018-12-03 09:38:25
283
原创 前端动态创建表格并获取表格的所有内容为数组
<!--动态创建表格并添加内容--> <!--添加内容后的表格最后以数组的方式传给后台--> <!--Demo如下--> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" conte
2018-09-13 16:21:32
1954
原创 前端路径传参并截取
以下是带参的路径 window.location.href = 'guestVideop.html?doctorId=' + data["doctorid"] + '&_=' + Math.random()+ '&patientphone=' +patientphone; 以下是从路径截取值 /*获取当前路径的参数值*/ function queryURLParame...
2018-09-13 16:08:24
1546
原创 input file在IE浏览器上的样式兼容问题
开发需求上传文件给后台,而&amp;lt;input type=&quot;file&quot;&amp;gt;样式在不同浏览器上的兼容实在的英文惨不忍睹,特意写下此贴以便日后参考。 HTML如下: &amp;lt;a class=&quot;fileOne&quot; href=&quot;#&quot;&amp;gt; &am
2018-09-03 09:16:24
3234
原创 前端上传图片并展示该图片
HTML代码: <input type="file" id="picture"> <div class="box" style="margin-top: 10px"><img src="" alt=""></div> JQuery代码: <script&
2018-08-31 10:34:42
2825
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人