已经解决了,谢谢各位大佬。上方有位大佬发出了例子.谢谢
filter过滤-数组-问题?请问大家微信小程序中又没有提供向vue那样的filter过滤器,过滤一个数组. var array=[{name:"lisi",age:21,sex:"男"},{name:"黄哈哈",age:20,sex:"男"},,{name:"llili",age:29,sex:"女"}] 过滤上方数组,输出性别男的数组内容.
2019-11-26[图片]
小程序打开不做任何操作,隔一段时间之后开始不断请求接口小程序打开不做任何操作,隔一段时间之后开始不断请求接口,好像是做了定时,只有退出之后重新登录才会停止 后台不断提示log appendFile err fs_appendFile:fail no such file or directory, open "http://usr/miniprogramLog/log
2019-11-19基础库的问题换成2.8.3就好了
bindinput问题?在组件中使用bindinput不起作用,使用表单提交也不起作用,哪位大佬帮忙看下 js: [代码]// compent/binduserinfo/binduserinfo.js[代码][代码]Component({[代码][代码] [代码][代码]/**[代码][代码] [代码][代码]* 组件的属性列表[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]properties: {[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 组件的初始数据[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]data: {[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]bindKeyInput: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]console.log(e)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]/**[代码][代码] [代码][代码]* 组件的方法列表[代码][代码] [代码][代码]*/[代码][代码] [代码][代码],methods: {[代码][代码] [代码][代码]prev() {[代码][代码] [代码][代码]this[代码][代码].triggerEvent([代码][代码]"page"[代码][代码], 1);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]login() {[代码][代码] [代码][代码]console.log([代码][代码]"绑定"[代码][代码])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码]})[代码] html: [代码]<[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"cu-form-group margin-top"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"title"[代码][代码]>用户名:</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]placeholder[代码][代码]=[代码][代码]"请输入手机号"[代码] [代码]type[代码][代码]=[代码][代码]"number"[代码] [代码]bindinput[代码][代码]=[代码][代码]"bindKeyInput"[代码][代码]></[代码][代码]input[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"cu-form-group"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"title"[代码][代码]>密码</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]placeholder[代码][代码]=[代码][代码]"请输入密码"[代码] [代码]type[代码][代码]=[代码][代码]"password"[代码][代码]></[代码][代码]input[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"cu-btn bg-green block margin-tb-sm"[代码] [代码]bindtap[代码][代码]=[代码][代码]"login"[代码][代码]>绑定</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"footer"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"cu-btn bg-red block margin-tb-sm round"[代码] [代码]bindtap[代码][代码]=[代码][代码]"prev"[代码][代码]>上一页</[代码][代码]button[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码]
2019-11-16