摘要: 获取当前时间,日期格式function currentDate() { var date = new Date(); var y = date.getFullYear(); var m = date.getMonth() + 1; // m = m < 10 ? ('0' + m) : m; var 阅读全文
posted @ 2018-12-03 16:10 shuihanxiao 阅读(4813) 评论(0) 推荐(0)
摘要: //时间戳转日期格式,传入时间戳必须为数字类型function currentDate(shijianchuo) { var date = new Date(shijianchuo); var y = date.getFullYear(); var m = date.getMonth() + 1; 阅读全文
posted @ 2018-11-29 17:09 shuihanxiao 阅读(705) 评论(0) 推荐(0)
摘要: 1、嵌入pdf: (1)利用object (2)使用超链接 2、嵌入word 3、嵌入音频 4、嵌入视频chrome等浏览器支持html5,html5中video对象支持ogg、mp4(必须是H.264)格式的视频播放。为了兼容ie和chrome,采用了如下方法: 5、嵌入flash 阅读全文
posted @ 2018-11-15 17:20 shuihanxiao 阅读(2228) 评论(0) 推荐(0)
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><style type='text/css'> #container{position:absolute;left:50%; 阅读全文
posted @ 2018-11-15 17:11 shuihanxiao 阅读(1073) 评论(0) 推荐(0)
摘要: 1. 实现下拉刷新和下拉加载效果 iscroll-probe.js 2.手势密码插件 阅读全文
posted @ 2018-11-08 17:50 shuihanxiao 阅读(413) 评论(0) 推荐(0)
摘要: html <textarea id="bar" cols="62" rows="5" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">3dd</textarea> <button class=" 阅读全文
posted @ 2018-11-08 17:44 shuihanxiao 阅读(469) 评论(0) 推荐(0)
摘要: <form class="mian__form" @submit.prevent="submit"> <ul> <li> <div class="form__til">企业名称</div> <div class="form__input"> <input id="companyName" type= 阅读全文
posted @ 2018-11-08 17:09 shuihanxiao 阅读(176) 评论(0) 推荐(0)
摘要: 1. vue-cli 构建项目 # 全局安装 vue-cli $ npm install --global vue-clif # 创建一个基于 webpack 模板的新项目 $ vue init webpack your-project-name # 安装依赖 $ npm install # 进入项 阅读全文
posted @ 2018-11-08 16:54 shuihanxiao 阅读(231) 评论(0) 推荐(0)
摘要: 1、main.js中添加 vue.config.productiontip = false 这样即可去除警告! 第一个除了那个配置意外,还需要将 NODE_ENV 设置为 production 参考文档 https://cn.vuejs.org/v2/guide/deployment.html# F 阅读全文
posted @ 2018-11-08 16:19 shuihanxiao 阅读(4173) 评论(0) 推荐(0)
摘要: fastclick:处理移动端click事件300毫秒延迟 1、兼容性iOS 3及更高版本的移动SafariiOS 5及更高版本的ChromeAndroid上的Chrome(ICS)Opera Mobile 11.5及以上版本Android 2以来的Android浏览器PlayBook OS 1及以 阅读全文
posted @ 2018-11-08 14:55 shuihanxiao 阅读(161) 评论(0) 推荐(0)