11 2018 档案

摘要://时间戳转日期格式,传入时间戳必须为数字类型function currentDate(shijianchuo) { var date = new Date(shijianchuo); var y = date.getFullYear(); var m = date.getMonth() + 1; 阅读全文
posted @ 2018-11-29 17:09 shuihanxiao 阅读(673) 评论(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 阅读(2213) 评论(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 阅读(1065) 评论(0) 推荐(0) 编辑
摘要:1. 实现下拉刷新和下拉加载效果 iscroll-probe.js 2.手势密码插件 阅读全文
posted @ 2018-11-08 17:50 shuihanxiao 阅读(407) 评论(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 阅读(465) 评论(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 阅读(168) 评论(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 阅读(218) 评论(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 阅读(4165) 评论(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 阅读(158) 评论(0) 推荐(0) 编辑
摘要:var url = "http://www.wrox.com/illegal value.html#start";encodeURIComponent(url) //"http%3A%2F%2Fwww.wrox.com%2Fillegal%20value.html%23start" encodeUR 阅读全文
posted @ 2018-11-05 15:40 shuihanxiao 阅读(222) 评论(0) 推荐(0) 编辑
摘要:npm install --save jsencrypt 阅读全文
posted @ 2018-11-05 15:04 shuihanxiao 阅读(554) 评论(0) 推荐(0) 编辑
摘要:/*重置浏览器默认样式*/body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre,form, fieldset, input, textarea, p, blockquote, th, td ,button{ padding: 0 阅读全文
posted @ 2018-11-05 14:53 shuihanxiao 阅读(1034) 评论(0) 推荐(0) 编辑
摘要:html <div class="pwdContent"> <div class="pwdBox"></div> <div class="pwdErrorPoint">请输入数字!</div></div>js // 短信验证码/*动态生成*/var pwdBox = document.getElem 阅读全文
posted @ 2018-11-05 11:36 shuihanxiao 阅读(530) 评论(0) 推荐(0) 编辑
摘要:velocity三种reference 变量:对java对象的一种字符串化表示,返回值调用了java的toString()方法的结果。 方法:调用的是对象的某个方法,该方法必须是public的,返回值也是toString(),方法的参数也必须为String的。 属性:除了访问java的类属性外,等价 阅读全文
posted @ 2018-11-02 11:00 shuihanxiao 阅读(33325) 评论(0) 推荐(0) 编辑
摘要:若后台 network response返回数据为函数包裹 如 callback({"code":"0000"}) ajax请求应该是 阅读全文
posted @ 2018-11-02 10:47 shuihanxiao 阅读(819) 评论(0) 推荐(0) 编辑
摘要:vue中滚动页面,改变样式&&导航栏滚动时,样式透明度修改.vue <div class="commonHeader" v-bind:class="{ 'navActive': scrollFlag }"> <img src="@/images/home/icon_jdjr.png" v-bind: 阅读全文
posted @ 2018-11-01 16:57 shuihanxiao 阅读(2045) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示