笔记
- 高斯模糊,背景模糊参考 参考2 自己的实践代码
- 正则表达式,
$1与不包含某连续字符串的实践 ``` ‘rgb(144, 144, 144)’.replace(/rgb(([\d]+), ([\d]+), ([\d]+))/, ‘$1 $2 $3’)
‘<123>’.replace(/<([((?!br).)]+)>/, ‘< $1 >’)
‘gainover123’.replace(/gai([\w]+?)over([\d]+)/, ‘$1 $2’)
rawHtml.replace(/<(((?!br).)*)>/, ‘< $1 >’); // 无效化除了
以外的标签
3. `dart` 中使用 `.runtimeType` 判断类型
4. `dart` 中使用 `??` 是不能用在 `if()` 语句中的,请使用语句
var tmp; if(tmp?.a?.a ?? false) return ‘’; // null 时返回 false
if(tmp?.a?.a ?? true) return ‘’; // null 时返回 true ```