菲菲
...
...
1. 矩形图片显示中间部分 .panel{ height: 200px; width: 200px; background-size: cover; background-position: center; background-image: url('./img1.png'); }
1.1 补充: 使用object-fit ...怎么判断一个变量是null 先看一下 typeof 所能检测的值 console.log('""',typeof '') // string console.log('new String()',typeof new String()) //object ...
获取秘钥 1. 从cer文件中导出公钥 openssl x509 -inform der -in xabank.cer -pubkey -noout > public_key.pem 1. 使用keytool 查看keystore中的证书 keytool -list ...
网络请求 支付宝小程序的网络请求api底层用了promise,但是catch里并没有把异常传递出来, ,在根据自身业务使用promise重新封装my.request时需要特别注意要自身代码要使用try-catch捕获异常,否则在调试的时候会很难定位错误。像这样 这里如果不在success里使用try-catch,一旦success里代码出错,小程序根本不会提示哪里出了错误。 输入框 在使用调试模式的时候,输入框的输入会有卡顿的现象,输入太快会导致错乱,所以在调试输入框的时候只能用预览的形式或者体验版本的形式去调试。 下拉刷新 ios和Android表现不一致,并且都不是很完美。 垂直居中 在使用height和line-height相等时 ...