摘要: function isValueNumber(value) { return(/(^-?[0-9]+\.{1}\d+$)|(^-?[1-9]*$)|(^-?0{1}$)/).test(value + '');} 阅读全文
posted @ 2017-12-19 13:42 daxia11 阅读(94) 评论(0) 推荐(0)
摘要: http://www.qdfuns.com/notes/47110/63b706f051c0b515aa115cc1b1b9fc00.html 阅读全文
posted @ 2017-12-01 17:27 daxia11 阅读(142) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/xinhudong/p/7871928.html 阅读全文
posted @ 2017-11-30 14:51 daxia11 阅读(87) 评论(0) 推荐(0)
摘要: function a(numb) { let numb_str = numb.toString() return numb_str.indexOf('.') > 0 ? numb_str.replace(/\.\d*/i, function (xiaoshu){return (xiaoshu.length === 2 ? xiaoshu + '0' : xiaoshu.sli... 阅读全文
posted @ 2017-09-28 16:22 daxia11 阅读(155) 评论(0) 推荐(0)
摘要: //校验使用的应用 var browserCheck = { versions : function() { var u = navigator.userAgent; return { weixin : u.indexOf('MicroMessenger') > -1, // 微信 QQ : u.indexOf('MQQBrowser') > -1, // 是否QQ ... 阅读全文
posted @ 2017-09-28 11:48 daxia11 阅读(467) 评论(0) 推荐(0)
摘要: import Vue from 'vue';import axios from 'axios';import store from '../store/'; // 默认配置axios.defaults.baseURL = 'http://www.xxxx.com'; axios.defaults.h 阅读全文
posted @ 2017-09-01 11:15 daxia11 阅读(634) 评论(0) 推荐(0)
摘要: test // 单行注释 /** * 多行注释 * @date 2014-05-12 22:24:37 * @name 测试一下 */ var str1 = "123\"456"; var str2 = '123\'456'; var str3 = "123\ 456"; var num = 123; var arr = [12, 12.34, .12, 1e3, 1e+3, 1e-... 阅读全文
posted @ 2017-08-29 14:34 daxia11 阅读(186) 评论(0) 推荐(0)
摘要: redirectToNative的demo 如果没有自动下载,请手动点此下载一淘客户端,安装后用一淘客户端的扫描功能重新扫描二维码即可; 如果您不想安装客户端,也可以直接访问etao触屏版,同样有手机专享价以及优惠券和返利! 阅读全文
posted @ 2017-08-18 10:20 daxia11 阅读(1285) 评论(0) 推荐(0)
摘要: //引入模块 const http = require('http') const fs = require('fs') const cheerio = require('cheerio') const iconv = require('iconv-lite') const request = require('request') const async = require('async'); ... 阅读全文
posted @ 2017-08-01 11:17 daxia11 阅读(1107) 评论(0) 推荐(0)
摘要: https://darylxyx.github.io/Demo/fragment/ http://www.cnblogs.com/ghost-xyx/p/7240282.html 阅读全文
posted @ 2017-07-28 11:51 daxia11 阅读(140) 评论(0) 推荐(0)