随笔分类 - js
js库写的一些方法
摘要:一、引入sha1.js、jwexin1.6.0.js文件 二、wx.config()配置 wx.config({ debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 a
阅读全文
摘要:html核心代码如下: <p class="iptCodeTip">请输入短信中的6位验证码</p> <div class="checkedCode"> <%--<input type="text" maxlength="6" id="iptCode">--%> <div class="getCod
阅读全文
摘要:H5实现广告栏之类的文字上下滚动,展示的效果为同时显示多行数据,然后首尾无缝连接,时间间隔为一秒滚动一次,延迟一秒钟,这些都是可配的参数; html如下: <div id="news_container"> <ul> <li>1某某某 抽中了100元话费券</li> <li>2某某元话费券</li>
阅读全文
摘要:str:字符串 beginStr:开始位置 endStr:结束位置; common.desensitization = function(str,beginStr,endStr){ var len = str.length; var leftStr = str.substring(0,beginSt
阅读全文
摘要:function count(wait) { function time() { if (wait == 0) { //倒计时完成以后进行操作 } else { $("#varifyCode").show().text(wait + "s");//显示倒计时数字 wait--; setTimeout
阅读全文

浙公网安备 33010602011771号