- 博客(6)
- 资源 (1)
- 收藏
- 关注

原创 vue父传子,子传父
父传子:在父组件用v-bind绑定一个值,在子组件中用props接受父组件绑定的值子传父:先在子组件中定义一个方法,然后在子组件方法中使用this.emit,this.emit,this.emit,this.emit有两个参数,第一个是"自定义函数",第二个就是传递的参数值,如this.emit(event:"selectTag",args:data);然后在父组件中使用v−on来监听子组件方法中使用的this.emit(event:"selectTag",args:data);然后在父组件中使用v-on
2020-08-05 17:11:58
324
原创 vue的列表el-table-column展示时间,2018-05-19T08:04:52.000 0000时间展示格式修改成yyyy-MM-dd hh:mm:ss
1、导入包:import * as fecha from “element-ui/lib/utils/date”;2.加formatter<el-table-columnprop="creattime"labe="创建时间":formatter="dateTimeFormatter"/>3.在methods加上下面方法//列表日期时间格式化dateFormat(row, column, cellValue) { return cellVa.
2020-09-30 15:28:25
860
转载 转:关于Tomcat启动报错:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
转载自:https://blog.youkuaiyun.com/jacy_lee_ldf/article/details/53045815报错 : Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]一般是 Tomcat 的默认端口被占用,或者 Tomcat 进程没有关掉。(这个可以通过任务...
2019-04-24 16:28:45
310
原创 Android Studio无法打印log(关于华为手机)
今天我们来说一下,logcat不能打印调试信息的问题我一直用的华为手机作为调试工具,但是,一直打印不出我需要的信息,试了虚拟机,可以打印出我想要的log信息,难道是 华为 的锅??对!下面说下方法:1:在拨号键盘输入*#*#2846579#*#*,系统会自动打开【工程菜单】界面。2:打开【后台设置】 → 【LOG设置】,勾选【AP日志】等4项。然后,不需要重启手机,重启手机后刚刚设置的又会恢复原...
2018-06-29 13:45:46
599
原创 解决 Resolved versions for app (26.1.0) and test app (27.1.1) differ的几个办法
1.Rebuild Project,但是每次打开程序都要Rebuild Project一次2.3.在app的build.gradle里面加上这句话 ,在android{ }前面加上。configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'}...
2018-06-06 09:02:46
5116
应用xUtils3框架编写的登录注册界面,使用的是xUtils3.3.22,数据解析使用gson
2018-04-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人