![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
Marhal
你想知道什么,我就不告诉什么。
展开
-
Javascript实现倒计时和根据某时间开始计算时间
1、根据某时间计算经过了多长时间JavaScript 代码<script type="text/javascript"> var time_start = new Date('2018','7','15');//开始时间,注意!!!如果从8月15开始,月份就是7月15 var clock_start = time_start.getTime(...原创 2019-03-07 09:34:00 · 2164 阅读 · 0 评论 -
B站视频开源代码flv.js+HTML5无flash播放视频
源码地址 https://github.com/bilibili/flv.jsgit clonehttps://github.com/bilibili/flv.jscd flv.js-masternpm installnpm和node.js的安装不做介绍 不想那么麻烦的在这里提取链接:网盘地址提取码:kqls直接上源码<!doctype ...原创 2019-03-01 17:39:00 · 9347 阅读 · 13 评论 -
jQuery+ThinkPHP5.0 无插件上传图片
PHP代码上传至阿里云OSS(只是做demo演示,服务端没有做文件类型大小等判断,请开发者自行添加)原创 2019-03-01 16:03:00 · 472 阅读 · 0 评论 -
js获取url锚链,操作class和id的显示和隐藏
http://xxxx.com/admin/goods/add.html#desc需要获取到后面的#desc,来让这个id为desc的div显示,其他某一个class隐藏var thisId = window.location.hash;console.log();//#descvar thisId = window.location.hash;thisId=thisId.s...原创 2018-07-05 10:40:00 · 367 阅读 · 0 评论 -
JavaScript 实现单图片上传实时预览
<div class="col-sm-6" > <input type="file" name="thumb" onchange="showPreview(this,false)"> <img id="portrait" src="" style="display:none;" width="120" height="60"/></...原创 2018-05-24 23:20:00 · 114 阅读 · 0 评论 -
bootstrap的中国地区选择器
github下载地址https://coding.net/u/packy/p/bootstrap-chinese-region/git?public=true只需要example下的lib文件夹即可(最开始引入的是dist文件下的文件,结果报错了,具体原因没有详查,就直接用官方demo里的文件,结果成功了,所以下载下来的时候,拿到lib文件夹就可以拍屁股走了)不多说,基本的...原创 2018-05-24 20:49:00 · 2974 阅读 · 0 评论 -
jquery限制输入字数
<!--简介--> <h3 class="describe">简介:</h3> <li class="clearfix" style="padding: 0"> <textarea type="text" name="desc" cols="30" rows="5" placeh...原创 2018-05-23 18:53:00 · 411 阅读 · 0 评论