Skip to content

Instantly share code, notes, and snippets.

View imzyf's full-sized avatar
🎯
If I Rest, I Rust.

Yifans_Z imzyf

🎯
If I Rest, I Rust.
View GitHub Profile
@imzyf
imzyf / History|-15d258b|entries.json
Last active June 20, 2022 09:49
Visual_Code_Setting
{"version":1,"resource":"file:///Users/v_yfanzhao/webproject/hec_mobile_web/src/components/FormWidget/DepartmentPicker.vue","entries":[{"id":"SiAe.vue","timestamp":1654767313037},{"id":"4Jwn.vue","timestamp":1654767996735},{"id":"TcYm.vue","timestamp":1654768028248},{"id":"5yfg.vue","source":"undoRedo.source","timestamp":1654768031887}]}
禁用 a 标签 href
<a href='javascript:void(0)'></a>
onclick 事件绑定 return false
<a href="#" onclick="javascript:XXXX;return false;"></a>
图片不存在时显示一个默认的图片
<img src="abc.JPG" onerror="this.src='default.JPG'"/>
.wlhf_productSeriesList .f_seriesTitle .f_sub1:before {
/*伪类必须有点实物载体,哪怕是空格,不然伪类元素在html不显示,所以conent设置了一个空格*/
content:" ";
position:absolute;
left:30px;
/*定位直接为0,然后用translate位移100%,不用去计算高度*/
bottom:0px;
/*然后用translate位移100%,不用去计算高度*/
transform: translate(0,100%);
width:0px;
#!/bin/bash
time=`date +"%Y%m%d"`
# 8011 要备份的数据表 列表
# 同步数据库 表
mysqldump -uroot -p site_db a_table > "key$time.sql" && cat "key$time.sql" | mysql -uroot -p coupon_local
### 文件移动
```
@imzyf
imzyf / ViewController.swift
Created September 29, 2017 07:40
Swift TTS Dome
//
// ViewController.swift
// TTS
//
// Created by 太阳在线YHY on 2017/6/28.
// Copyright © 2017年 太阳在线. All rights reserved.
//
import UIKit
import AVFoundation