上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: import { Platform, Dimensions } from 'react-native'; // iPhoneX const X_WIDTH = 375; const X_HEIGHT = 812; // screen const SCREEN_WIDTH = Dimensions.get('window').width;... 阅读全文
posted @ 2018-10-30 11:51 年少的你如此美丽 阅读(927) 评论(0) 推荐(0) 编辑
摘要: "babel-plugin-transform-decorators-legacy": "^1.3.5", "babel-preset-react-native-stage-0": "^1.0.1", "mobx": "^3.2.2", "mobx-react": "^4.2.2", .babelr 阅读全文
posted @ 2018-09-18 18:07 年少的你如此美丽 阅读(464) 评论(0) 推荐(0) 编辑
摘要: function price(n, precision) { let s = String(n), int = parseInt(n).toString(), pre = s.split('.')[1]; let start = int.length % 3; let r = s.substr(0, 阅读全文
posted @ 2018-07-10 16:49 年少的你如此美丽 阅读(208) 评论(0) 推荐(0) 编辑
摘要: // rem (function(doc, win) { var docEle = doc.documentElement, evt = "orientationchange" in window ? "orientationchange" : "resize", fn = function() { 阅读全文
posted @ 2018-07-09 13:58 年少的你如此美丽 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://caibaojian.com/mobile-meta.html 上面给出了常用的一些meta属性,下面给一个对meta使用的理解。 meta是html语言head区的一个辅助性标签。也许你认为这些代码可有可无。其实如果你能够用好meta标签,会给你带来意想不到的效果,meta 阅读全文
posted @ 2018-07-09 13:54 年少的你如此美丽 阅读(142) 评论(0) 推荐(0) 编辑
摘要: document.getElementById("view").scrollIntoView(false); 阅读全文
posted @ 2018-06-29 11:36 年少的你如此美丽 阅读(501) 评论(0) 推荐(0) 编辑
摘要: // rem (function(doc, win) { var docEle = doc.documentElement, evt = "onorientationchange" in window ? "orientationchange" : "resize", fn = function() 阅读全文
posted @ 2018-06-06 14:38 年少的你如此美丽 阅读(127) 评论(0) 推荐(0) 编辑
摘要: async function myFunction() { try { await somethingThatReturnsAPromise(); } catch (err) { console.log(err) } } async function myFunction() { await somethingThatRe... 阅读全文
posted @ 2018-06-06 14:36 年少的你如此美丽 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 一、nvm的安装和使用 nvm全称Node Version Manager是 Nodejs 版本管理器,它让我们能方便的对 Nodejs 的版 本进行切换。 nvm 的官方版本只支持 Linux 和 Mac。 Windows 用户,可以用 nvm-windows。详情请点击官方说明 1、卸载已安装到 阅读全文
posted @ 2018-05-20 10:22 年少的你如此美丽 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 两者作用一致,都是把obj(即this)绑定到thisObj,这时候thisObj具备了obj的属性和方法。或者说thisObj『继承』了obj的属性和方法。 唯一区别是apply接受的是数组参数,call接受的是连续参数。 阅读全文
posted @ 2018-05-14 22:02 年少的你如此美丽 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页