rootyou have to do it for me and I am a new year type it to you by my friend is the only thing you have you type it to you and I am yay yay yay yay for a ty ty ty ty ty ty ty ty ty ty ty ty tyY The y ty ty ty ty ty ty for a ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty ty for the next to me Yyyyyyyyytyyyyyyytt The way I can see you yyyyyyyyytyyyyyyytt yyyyyyyyytyyyyyyytt the way ty ty for the first day and night Yyyyyyttttyyty The same time I see it as
学习了 还有没有更进一步的课程
请问老师什么时候更新课程?
以前学习Java,现在刚开始学习小程序,哪位大佬有群推荐下
有重谢!!!
做完最后这个例子,有个问题:点击“免费”后,再点“付费”会显示空白,回不到期望显示的“付费”课程。原因应该是index.js 程序把 data.list 给刷新了,而貌似 wxml {{ }}里的数据必须绑定到data里的数据才成显示?不知是否这个原因?那怎样才能做出:点击“免费”显示免费课程,点击“付费”显示付费课程的效果呢?
后面还有后续课程吗?这里学完算入门了不?
2倍速听起来非常舒服
我是零基础的小白,学的很辛苦。一边百度一边理解每个字符和公式的逻辑和作用,为什么是data[i]?换成[i]会代表什么?换成data会怎样?i++是什么意思?i<len是什么意思?百度几个小时,就为了把一串公式看懂看透。这还仅仅是一个公式……。
学习了 还有没有更进一步的课程
解决付费、免费按钮切换显示空白:
1、新增一个courses
2、每次onFilter时: let data = this.data.courses;
Page({
data: {
course_list: [
{
price: 0,
name: '人人都会小程序',
coverPath: '../../images/cover.png'
},
{
price: 149,
name: '人人都会小程序实战',
coverPath: '../../images/cover.png'
},
{
price: 249,
name: '人人都会小程序实战2',
coverPath: '../../images/cover.png'
}
],
courses: [
{
price: 0,
name: '人人都会小程序',
coverPath: '../../images/cover.png'
},
{
price: 149,
name: '人人都会小程序实战',
coverPath: '../../images/cover.png'
},
{
price: 249,
name: '人人都会小程序实战2',
coverPath: '../../images/cover.png'
}
]
},
onFree: function () {
this.onFilter()
},
// 函数
onCost: function () {
this.onFilter('cost')
},
onFilter: function (type) {
let data = this.data.courses;
let newData = [];
let i = 0;
for (; i < data.length; i++) {
if (type == 'cost') {
if (data[i].price > 0) {
newData.push(data[i]);
}
} else {
if (data[i].price == 0) {
newData.push(data[i]);
}
}
}
console.log(newData);
this.setData({
course_list: newData
})
}
})
请问老师什么时候更新课程?请问老师什么时候更新课程?请问老师什么时候更新课程?请问老师什么时候更新课程?请问老师什么时候更新课程?