- 博客(4)
- 收藏
- 关注
原创 微信小程序跳页的3种实现方式
1.在wxjs文件的function中,使用wx.navigateTo()实现jumpToCart:function(){wx.navigateTo({url: '/page/component/cart/cart',});}2. 在wxml页面中:使用navigator>navigator>标签实现{{item.titl
2017-11-08 16:35:03
2909
原创 Ajax如何传递多个参数
使用 & 连接各个参数示例:$.ajax({url:"../teachingMgt/checkScore",type : "post",async : true,data:"studentId="+stuId+"&subjectId="+subId,dataType : "json",success: function(data){chart.set
2017-11-08 16:19:38
21302
原创 使用css实现渐变色背景
渐变方式线性渐变放射性渐变线性渐变linear-gradient(to bottom,colorStrat,colorEnd)第一个参数指定 渐变的方向to bottom 从上至下to bottom right 从左上至右下to right 从左至右to up right 从左下至右上to up 从下至下to
2017-11-08 16:01:09
39119
1
原创 小程序之全局变量赋值
关于给全局变量赋值注意事项:1. 一般是通过 this.setData({ name:myName})将myName赋值给全局变量name。此时,this必须为全局作用域下。2.一旦在某一过程函数中调用其他函数,则使用 let that=this引用this,避免作用域问题导致赋值失败。
2017-11-08 15:55:05
15209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人