摘要: fail:function(){ wx.showModal({ title: '拒绝授权', content: '拒绝授权您将不能使用任何功能, 如想重新授权,请先删除小程序之后再次添加授权,才能使用', showCancel: false, success: function (res) { if 阅读全文
posted @ 2017-11-30 15:46 不一样的开始 阅读(5556) 评论(0) 推荐(0) 编辑
摘要: 取值的时候,再页面加载函数中可以获取到 阅读全文
posted @ 2017-11-22 17:00 不一样的开始 阅读(5781) 评论(0) 推荐(0) 编辑
摘要: 小程序弹出框: http://blog.csdn.net/u014360817/article/details/52671211 阅读全文
posted @ 2017-11-16 17:22 不一样的开始 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 要加上header头 header:{ 'content-type':'application/x-www-form-urlencoded' } 阅读全文
posted @ 2017-11-15 17:12 不一样的开始 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 获取注册码地址 http://idea.lanyus.com/ 阅读全文
posted @ 2017-11-14 10:12 不一样的开始 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 核心代码就是 wx:for,对应一个数组。 而 wx:for-index 指明后面如果要用数组索引的话,用什么名字,如果名字是 index,则可省略,直接使用。 而 wx:for-item 指明后面如果要用数组索引对应的项的话,用什么名字,如果名字是 item,则可省略,直接使用。 .js 代码 原 阅读全文
posted @ 2017-11-09 12:07 不一样的开始 阅读(1841) 评论(0) 推荐(0) 编辑
摘要: var Cts = "bblText"; if(Cts.indexOf("Text") > 0 ) { alert('Cts中包含Text字符串'); } 阅读全文
posted @ 2017-11-02 14:08 不一样的开始 阅读(518) 评论(0) 推荐(0) 编辑
摘要: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 阅读全文
posted @ 2017-10-31 19:04 不一样的开始 阅读(9415) 评论(0) 推荐(0) 编辑
摘要: var obj={"name":"wjy","age":26,"sex":"female"};//定义一个object对象 var keys=[];//定义一个数组用来接受key var values=[];//定义一个数组用来接受value for(var key in obj){ keys.push(key); values.push(obj[key]);//取得valu... 阅读全文
posted @ 2017-10-31 16:46 不一样的开始 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 'APP_SUB_DOMAIN_DEPLOY' => 1, // 开启子域名配置 'APP_SUB_DOMAIN_RULES' => array( 'XXX.com' => 'Home', // admin.domain1.com域名指向Admin模块 'XXX1.com' => 'Admin', // test.domain2.com域名指... 阅读全文
posted @ 2017-10-27 19:42 不一样的开始 阅读(1198) 评论(0) 推荐(0) 编辑