小程序里面要完成一个某个值的实时监听要用到 Object.defineproperty 这个属性,把对象进行劫持 app.js 定义一个 watch 函数进行全局观察 在要监听的页面 ...
分类:
微信 时间:
2020-07-27 15:50:15
阅读次数:
167
根元素: 文档元数据:、、 内容分区:、、 、 、 、~ 、 、、 文本内容:、、、、、 、、 、、、 、、 、 内联文本语义: 、、、、、、、、、、、、、、、、、、、、、、、、、、、、、 图片和多媒体: 内嵌内容:、、 、、、 脚本:、、 编辑标识:、 表格内容:、、、、、、、、、 表单: 、、 ...
分类:
Web程序 时间:
2020-07-27 15:37:47
阅读次数:
1313
apple 官方文档 https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ ...
分类:
移动开发 时间:
2020-07-27 09:52:52
阅读次数:
89
配套视频: 教学视频 r+元音 多读一个“若” 例:your eyes l+元音 多读个“了” 例:double of t+元音 变成个“的” 例:soit is n+元音 多读个“呢” 例: an apple 爆破音+辅音 /p/, /b/, /t/, /d/, /k/, /g/ 为爆破音。 空它 ...
分类:
其他好文 时间:
2020-07-26 01:55:06
阅读次数:
90
高阶函数: 接受函数为参数,或者把函数作为结果返回的函数是高阶函数。 例子: python的sorted函数 需求:根据单词长度排序。 fruits=['strawberry','fig','apple','cherry','raspberry'] sorted(fruits,key=len) 需求 ...
分类:
编程语言 时间:
2020-07-26 01:10:26
阅读次数:
64
gulpfile.js gulp.task('watch', function () { gulp.watch('./css/*.css',['css']); gulp.watch('./html/*.html',['html']); gulp.watch('./image/*.*',['image ...
分类:
其他好文 时间:
2020-07-26 00:14:30
阅读次数:
75
记一次工作中vue中mounted请求接口返回值和vue的data域中属性不一致的坑 当时需求:就是当时在这个页面中,就是本次补差余额只要变化,就会显示当前的时间。 当时处理的是使用change方法监听这个输入框的变化(其实也可以使用watch): 但是在调试的时候竟然出现:说我的这个bcbcsj没 ...
分类:
其他好文 时间:
2020-07-23 22:37:54
阅读次数:
127
https://www.luogu.com.cn/problem/P1478 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, s, a, b; 4 struct apple{ //结构体定义苹果的高度和摘苹果所用的力气 5 int ...
分类:
移动开发 时间:
2020-07-23 15:54:43
阅读次数:
85
在vue中监控一个对象的属性变化,并且触发监听事件 watch: { 'user': [ { handler: (nweVal, oldVal) => { console.info('in 1 hanlder') }, immediate: true, deep: true }, { handler ...
分类:
其他好文 时间:
2020-07-23 15:42:51
阅读次数:
99
1 # 2 # s = 'nihao' 3 # count = 0 4 # for i in s : 5 # count += 1 6 # print(count) 7 8 # dic = dict(('name','apple')) 9 # print(dic) 10 11 # def mylen ...
分类:
其他好文 时间:
2020-07-21 13:42:58
阅读次数:
67