小程序 animation 失效 高度闪烁
animation无效uniapp开发时候 v-show和animation一起使用必须在nextTick中执行动画,否则无效 123this.$nextTick(() => { this.showStar()}) 该表的值必须在style中写上 animation高度闪一次小程序性能较差,animation本质上使用style内联导致高度有一次闪烁,可以使用内联的style写死width和height
微信小程序 video 播放时候开始总有一段黑屏解决办法
不知是何原因,微信小程序video播放经常有一块黑屏,经过反复测试 video不能被隐藏display:none;可以使用z-index 上来就静音默认播放,再次播放时候不会黑屏 哪怕使用同一个url,不同的video标签,他还是会黑屏 也可能跟分辨率有关,我发现如果是高分辨率就会黑比较久,mp4也有好多个压缩级别,都有影响
python 百度 paddle 抠图
1234567891011import paddlehub as hub# 1.加载模型humanseg = hub.Module(name="deeplabv3p_xception65_humanseg")# 2.抠图results = humanseg.segmentation( paths=["./woman.jpg"], visualization=True, output_dir='humanseg_output')
yii2 rest api User--identityClass must be set
原因behaviors中默认rateLimiter限速中会调用用户组件,去掉即可
windows git 换行符
1git config --global core.autocrlf input https://www.cnblogs.com/youpeng/p/11243871.html
换系统步骤
备份秘钥 备份代码 备份文档 备份图片视频
微信小程序 input 错位 placeholder 层级过高
input错位 原因微信小程序输入时候,会自动上推页面,会出现这个奇怪的问题 解决只要让整个页面可以自动撑开即可,比如最外层的container不要限制高度 placeholder层级只要给不想被错误覆盖的元素一个z-index
git 用远端覆盖本地
https://blog.csdn.net/sinat_36184075/article/details/80115000 123git fetch --allgit reset --hard origin/mastergit pull 不切换分支直接he’bing 123git fetch origingit merge origin/guojin/newemail
yii2 时间戳 修改格式 使用字符串
1234567891011121314public function behaviors(){ $behaviors = parent::behaviors(); $time = [ 'class' => \yii\behaviors\TimestampBehavior::class, 'value' => fn () => date('Y-m-d H:i:s'), 'attributes' => [ \yii\db\ActiveRecord::EVENT_BEFORE_INSERT => ['create_time', 'update_time'], \yii\db\ActiveRecord::EVENT_BEFORE_UPDATE => ['update_time'], ...
全国省市区行政区划数据
https://github.com/modood/Administrative-divisions-of-China https://gitee.com/shadowy/china-city