Rice.helen
Rice.helen
Podfile文件补充如下, 运行pod update。 ``` post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end end end ```
菜鸟版 ``` const converst = (obj, result, valStr) => { const keys =Object.keys(obj); keys.forEach(function(i) { if (typeof(obj[i]) === 'object') { const val = `${valStr}${i}.`; const objInfo = Object.keys(obj[i]); converst(obj[i], result,...
降低冗余度, 易理解, 易维护, 分离可以减轻html与css的逻辑, 加快提升速度吧
用chrome的 dev tool, performance 录制比较卡顿的地方, 来分析具体的代码, 也可以使用memory来观察内存的增长.
``` function findMiddle (arr) { const mid = parseInt(arr.length/2, 10) return arr.length%2? [arr[mid]] : [arr[mid-1], arr[mid]] } ```
.git/config修改远程地址, git push --mirror
``` /** * 转换 分钟转换为时分 */ var transformTime = (time) => { if (time > 60*60 || time < 0) return '00:00'; const hour = parseInt(time/60, 10) > 9 ?...
``` 1, !important 最高级 2, var divStyle = document.querySelector('#div').style; 修改属性 ```
listview数据源,改变重新setState数据源, listView不生效 +1