- 昵称:51助手
- 博龄:6年6个月0天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
Promise 对象
摘要:Promise 对象Promise 的含义基本用法Promise.prototype.then()Promise.prototype.catch()Promise.prototype.finally()Promise.all()Promise.race()Promise.resolve()Promise.reject()应用Promise.try()Prom
微信小程序的标签和html标签比较
摘要:微信小程序的标签和html标签比较html微信小程序<div></div><view></view><h1></h1><h2></h2>....<h6></h6><p></p>
php stdClass Object转array 对象转数组
摘要:例 对象object(stdClass)#12 (5) { ["out_trade_no"]=> string(0) "" ["body"]=> string(0) "" ["total_
php输出json内容
摘要:$a = '{"status":"3","message":"","errCode":"0","data":[{"time":"2014-12-12 20:37"}'
Page "pages/index/index" has not been registered yet.
摘要:原因,当前页面js必须有要Page({ }),如果为空就是这样提示
判断点击了哪个元素,获取当前元素的信息
摘要://关闭 $('obdy').click(function(e){ var obj = $(e.target); var ele = $(obj).attr('class');//获取被点击元素的class值 if(ele ==
微信小程序缓存机制
摘要:为了项目性能等方面的考虑,有时候有必要为用户经常访问的页面使用缓存机制;在技术上,服务端和前端都有相应的缓存机制。比如传统的session及cookie等等,在微信小程序中,并没有cookie机制,但有本地缓存。小程序官方文档对本地缓存的介绍如下:每个微信小程序都可以有自己的本地缓存,可以通过 wx.setStorage(wx.setStorageSync)
discuz插件开发
摘要:开启开发模式:/config/config_global.php 添加:$_config['plugindeveloper'] = 2; //1开启插件开发模式(不开启嵌入点),2开启插件开发模式(开启嵌入点)
点击其它地方时收起搜索下拉框
摘要:$('body').on('click',function(event){ // IE支持 event.srcElement , FF支持 event.target var evt = e