会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
9102
面对挑战,请给自己20秒的勇气迈出第一步!
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
下一页
2019年8月23日
小程序数组倒序
摘要: var numberArray = [1,2,3] numberArray .reverse(); 使用reverse必须要保证是数组调用而且不能为null、undefined 否则报错
阅读全文
posted @ 2019-08-23 10:26 9102
阅读(1647)
评论(0)
推荐(0)
2019年8月21日
小程序列表倒计时 wxs 实现
摘要: 效果 代码
阅读全文
posted @ 2019-08-21 11:43 9102
阅读(1448)
评论(12)
推荐(0)
2019年8月20日
cnpm
摘要: 官网最新node.js -->http://nodejs.cn/ 安装cnpm 执行命令 npm install -g cnpm --registry=https://registry.npm.taobao.org
阅读全文
posted @ 2019-08-20 14:41 9102
阅读(181)
评论(0)
推荐(0)
2019年8月14日
小程序的空判断
摘要: 1.判断undefined: 说明:typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined" 2.判断null: 3.判断NaN: 说明:NaN 表示非法,如果把 NaN 与任何值(包括其自身)相
阅读全文
posted @ 2019-08-14 18:39 9102
阅读(2368)
评论(0)
推荐(0)
小程序正则写法
摘要: 错误写法 var myreg =' /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(19[0-9]{1}))+\d{8})$/'; 正确写法 var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[
阅读全文
posted @ 2019-08-14 16:41 9102
阅读(919)
评论(0)
推荐(0)
2019年8月10日
网页之间跳转
摘要: https://www.cnblogs.com/jialinG/p/9377427.html
阅读全文
posted @ 2019-08-10 14:42 9102
阅读(187)
评论(0)
推荐(0)
2019年7月29日
小程序上传图片
摘要: 选择器 wx.chooseImage官方参数文档链接:https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html changeavatar(){ var _this = this; wx.s
阅读全文
posted @ 2019-07-29 17:46 9102
阅读(300)
评论(0)
推荐(0)
小程序字符串转对象
摘要: 可用方法 var obj = JSON.parse(str); 不可用方法 var obj = str.parseJSON(); var obj=eval("("+str+")");
阅读全文
posted @ 2019-07-29 17:36 9102
阅读(2476)
评论(0)
推荐(0)
2019年7月15日
小程序弹框wx.showModal、wx.showActionSheet、wx.showToast
摘要: wx.showModal wx.showModal({ title: '删除图片', content: '确定要删除该图片?', showCancel: true,//是否显示取消按钮 cancelText:"否",//默认是“取消” cancelColor:'skyblue',//取消文字的颜色
阅读全文
posted @ 2019-07-15 17:27 9102
阅读(1431)
评论(0)
推荐(0)
2019年7月11日
Mysql 修改最大链接数
摘要: 链接数过小经常出现ERROR 1040: Too many connections错误 show variables like '%max_connections%'; 查看当前的mysql链接值 set GLOBAL max_connections=1000; 临时设置链接值 修改完成后实时生效
阅读全文
posted @ 2019-07-11 10:48 9102
阅读(153)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告