- 博客(14)
- 收藏
- 关注
原创 html 一行代码变灰
html {filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=3);-webkit-filter: grayscale(100%);}
2022-11-30 17:33:37
402
1
原创 多个活动倒计时(小程序版)
大佬请绕路calculateTime(that, time, fn = () => { }, fn1 = () => { },t = false) { //that 页面this //time 当前时间 //fn与fn1 可以不写 //t 当没有时间传入时获取时间↓ ↓ ↓ ↓ ↓ if(t =...
2019-11-04 18:28:50
270
原创 对象排序
最近有个需求是 设置会员等级与折扣 要求是:更低的金额(等级 )不能有更高的折扣 如 :普通会员 要求达到1000元 折扣0.8折 黄金会员 要求达到2000元 折扣0.9折 这个就是有问题的在用户确定时要提醒用户了 下面方法判断出正在设置的金额的 折扣区间 isCorrect(num) { ...
2019-11-02 17:10:54
132
转载 利用函数防抖和函数节流提高小程序性能
函数防抖 const _.debounce = (func, wait) => { let timer; return () => { clearTimeout(timer); timer = setTimeout(func, wait); }; }; 函...
2019-01-14 18:27:56
848
原创 小程序解析openid php版
bindGetUserInfo: function (e) {let that = this;that.setData({'userInfo.nickName': e.detail.userInfo.nickName,'userInfo.Avatar': e.detail.userInfo.avatarUrl,'userInfo.province': e.detail.user...
2019-01-09 13:35:31
332
原创 node 爬虫
服务端const https = require("https"),http= require("http"),fs = require('fs');const url = require('url'); //导入urllet cheerio = require('cheerio'); //开启服务,监听8888端口//端口号最好为6000以上var serv...
2019-01-08 08:47:27
232
原创 按指定数量拆分对象 并填充到数组中
split_array: function(arr, len) { console.log(arr); let index = 0; var result = []; let res = []; let arr_index = 0; let arr_index_j = 0; let arr_i = 0; let arr_a = []...
2018-11-27 15:23:54
312
原创 apk 打包
1.下载 java jdk2.下载 sdk 地址http:tools.android-studio.org/index.php/sdk3.添加环境变量4.安装工具 注意版本一致5.安装 cordova npm install -g cordova6.使用corsova 搭一个脚手架 先进入当前目录 (注意目录结构) cordova create apk (apk 是其名字) ...
2018-07-09 08:57:59
326
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人