摘要: 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 阅读(229) 评论(0) 推荐(0)
摘要: npm install --save jsencrypt 阅读全文
posted @ 2018-11-05 15:04 shuihanxiao 阅读(569) 评论(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 阅读(1041) 评论(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 阅读(536) 评论(0) 推荐(0)
摘要: velocity三种reference 变量:对java对象的一种字符串化表示,返回值调用了java的toString()方法的结果。 方法:调用的是对象的某个方法,该方法必须是public的,返回值也是toString(),方法的参数也必须为String的。 属性:除了访问java的类属性外,等价 阅读全文
posted @ 2018-11-02 11:00 shuihanxiao 阅读(33686) 评论(0) 推荐(0)
摘要: 若后台 network response返回数据为函数包裹 如 callback({"code":"0000"}) ajax请求应该是 阅读全文
posted @ 2018-11-02 10:47 shuihanxiao 阅读(821) 评论(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 阅读(2063) 评论(1) 推荐(0)
摘要: flatpickr功能强大的日期时间选择器插件 日期格式化 精确到秒钟 使用方法 使用方法: 在页面中引入flatpicker.css和flatpicker.js文件。 HTML示例: 初始化插件: 配置参数 在配置参数中,所有的类型为string或boolean的参数都可以通过data-属性在HT 阅读全文
posted @ 2018-10-31 15:39 shuihanxiao 阅读(5855) 评论(0) 推荐(0)
摘要: react脚手架 npm install -g create-react-app 国内npm一般下载比较慢或者是常出现下载失败的情况,我们可以指定下载的仓库: npm install -g create-react-app --registry https://registry.npm.taobao 阅读全文
posted @ 2018-10-24 15:53 shuihanxiao 阅读(409) 评论(0) 推荐(0)
摘要: .tips-new-white span { .tips-new-white span { float: left; background-color: #fff; color: #333; padding: 5px 10px; vertical-align: middle; line-height 阅读全文
posted @ 2018-10-24 12:27 shuihanxiao 阅读(243) 评论(0) 推荐(0)