上一页 1 2 3 4 5 6 7 8 ··· 29 下一页
摘要: 转自: https://www.jianshu.com/p/41d1359b2c80 没有继承就没有多态 代码的体现:父类类型的指针指向子类对象 好处:如果函数方法参数中使用的是父类类型,则可以传入父类和子类对象,而不用再去定义多个函数来和相应的类进行匹配了。 局限性:父类类型的变量不能直接调用子类 阅读全文
posted @ 2020-10-13 15:17 liuw_flexi 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/xiaoyaohuqijun/article/details/48557243?utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~top_click~default 阅读全文
posted @ 2020-10-13 09:56 liuw_flexi 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 查看文件夹内容大小: sudo du -sh * 比如 我的Mac 里面 ~Library/Developer 路径下的文件比较大 参考自:https://www.zhihu.com/question/35085249/answer/876957517 只针对使用Xcode开发的电脑用户,一般用户比 阅读全文
posted @ 2020-10-11 12:40 liuw_flexi 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/jin-zhe/p/9985436.html this.$nextTick()将回调延迟到下次 DOM 更新循环之后执行。在修改数据之后立即使用它,然后等待 DOM 更新。它跟全局方法 Vue.nextTick 一样,不同的是回调的 this 自 阅读全文
posted @ 2020-10-10 10:38 liuw_flexi 阅读(201) 评论(0) 推荐(0) 编辑
摘要: talk is cheap ,show you my code: <template> <div class=""> BackTop2 <div> <h1>{{abc.def.hij}}</h1> <input v-model="abc.def.hij"/> <el-button type="pri 阅读全文
posted @ 2020-10-10 10:37 liuw_flexi 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 我开发的一个App中涉及了mp3播放, 但正播放酷我音乐,打开我开发的一个App,酷我音乐立即停止了, 我不希望这样,我希望在我开始播放我开发的一个App中mp3时再停止酷我音乐 解决办法: 不要在AppDelegate中写这段代码,因为一打开App就会走这里,可以试着放到播放按钮那里 AVAudi 阅读全文
posted @ 2020-10-09 16:04 liuw_flexi 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 初始化一个Vue实例,控制id为app的区域。 <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style media="screen"> *{ margin:0; p 阅读全文
posted @ 2020-09-29 13:17 liuw_flexi 阅读(180) 评论(0) 推荐(0) 编辑
摘要: String对象的方法 方法一: indexOf() (推荐) var str = "123"; console.log(str.indexOf("3") != -1 ); // true indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。如果要检索的字符串值没有出现,则该方 阅读全文
posted @ 2020-09-28 09:27 liuw_flexi 阅读(1585) 评论(0) 推荐(0) 编辑
摘要: https://www.jb51.net/article/157356.htm https://www.jb51.net/article/135748.htm 什么是插槽? 这里的slot标签就是插槽插槽就是一个坑插槽可以指定默认数据插槽可以指定名称 默认叫匿名插槽插槽可以有多个 有多少个就填充多少 阅读全文
posted @ 2020-09-21 17:02 liuw_flexi 阅读(208) 评论(0) 推荐(0) 编辑
摘要: code参考了: https://www.cnblogs.com/woshidouzia/p/9304603.html //测试数组 let arr = [1,2,3,4,5,6,7] console.log(" 1.for循环 ") for(let j=0, len = arr.length; j 阅读全文
posted @ 2020-09-21 09:54 liuw_flexi 阅读(160) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 29 下一页