polyfill
    
            
摘要:【polyfill】 参考:https://zhidao.baidu.com/question/1767408997770762580.html
        
阅读全文
摘要:【combineReducers】 Redux provides a utility called combineReducers(). The following two diagram has the same effect. You could also give them different
        
阅读全文
摘要:【React Context】 1、Why Not To Use Context The vast majority of applications do not need to use context. 大多数应用不需要使用context。 If you want your application
        
阅读全文
摘要:【propTypes】 React.PropTypes is deprecated as of React v15.5. Please use the prop-types library instead. You can define default values for your props b
        
阅读全文
摘要:【Redux】 1、Redux 的设计思想 (1)Web 应用是一个状态机,视图与状态是一一对应的。 (2)所有的状态,保存在一个对象里面。 2、Store Store 就是保存数据的地方,你可以把它看成一个容器。整个应用只能有一个 Store。 Redux 提供createStore这个函数,用来
        
阅读全文
摘要:【ES2015 import】 The import statement is used to import functions, objects or primitives that have been exported from an external module, another scrip
        
阅读全文
摘要:【Array.prototype.reduce】 Array.reduce([callback, initialValue]) 参数 参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects
        
阅读全文
摘要:【Flux architecture】 Flux is a pattern for managing data flow in your application. The most important concept is that data flows in one direction. As w
        
阅读全文
摘要:【React DevTools】 在应用商店搜索安装。F12可打开。如果是react应用,在最右排会显示react标签. 参考:https://github.com/facebook/react-devtools
        
阅读全文
摘要:【CSS Media Query】 CSS Media Queries are a feature in CSS3 which allows you to specify when certain CSS rules should be applied. This allows you to app
        
阅读全文
摘要:【ChromDevTools】 1、如何打开DevTools。 在Chrome菜单中选择 更多工具 > 开发者工具 在页面元素上右键点击,选择 “检查” 使用 快捷键 F12 2、切换 Device Mode 按钮可以打开或关闭 Device Mode。 3、使用视口控件 利用视口控件,您可以针对各
        
阅读全文
摘要:【css定位】 1、div、h1 或 p 元素常常被称为块级元素。这意味着这些元素显示为一块内容,即“块框”。与之相反,span 和 strong 等元素称为“行内元素”,这是因为它们的内容显示在行中,即“行内框”。 2、在一种情况下,即使没有进行显式定义,也会创建块级元素。这种情况发生在把一些文本
        
阅读全文
摘要:【css display属性】 通过将 display 属性设置为 block,可以让行内元素(比如 <a> 元素)表现得像块级元素一样。还可以通过把 display 设置为 none,让生成的元素根本没有框。这样的话,该框及其所有内容就不再显示,不占用文档中的空间。 参考:http://www.w
        
阅读全文
摘要:【react+webpack+babel环境搭建】 1、react官方文档推荐使用 babel-preset-react、babel-preset-es2015 两个perset。 Babel官方文档推荐使用 babel-preset-env。而不再推荐直接使用babel-preset-es2015
        
阅读全文
摘要:【response.sendfile() fails with Error: Forbidden】 参考:https://github.com/expressjs/express/issues/1465
        
阅读全文
摘要:【express返回html文件】 app.engine(ext, callback) 方法即可创建一个你自己的模板引擎。其中,ext 指的是文件扩展名、callback 是模板引擎的主函数,接受文件路径、参数对象和回调函数作为其参数。 通常是使用jade或ejs来返回一个页面。 若想直接返回一个原
        
阅读全文
摘要:【NPM安装依赖速度慢问题】 npm config set registry http://registry.npm.taobao.org 参考:http://blog.csdn.net/rongbo_j/article/details/52106580
        
阅读全文
摘要:【FLAG_ACTIVITY_CLEAR_TASK | FLAG_ACTIVITY_NEW_TASK】 1、FLAG_ACTIVITY_NEW_TASK 2、FLAG_ACTIVITY_CLEAR_TASK this flag will cause any existing task that wo
        
阅读全文
摘要:【JSON.parse()和JSON.stringify()】 parse用于从一个字符串中解析出json对象,如 var str = '{"name":"huangxiaojian","age":"23"}' 注意:单引号写在{}外,每个属性名都必须用双引号,否则会抛出异常。 stringify(
        
阅读全文
摘要:【AutoIncrement无法设置的问题】 下图红色处始终无法勾选Auto_Increment 解决方法是在详细列表里勾选。 链接:http://stackoverflow.com/questions/33602936/mysql-workbench-auto-increment-disabled
        
阅读全文
摘要:【Frame animation】 An animation defined in XML that shows a sequence of images in order (like a film). res/drawable/filename.xml Resource pointer to an
        
阅读全文
摘要:【Tween animation】 An animation defined in XML that performs transitions such as rotating, fading, moving, and stretching on a graphic. res/anim/filena
        
阅读全文
摘要:【在project窗口中快速定位文件】 点击带圆圈的小叉叉按钮,这个时候Project中就会定位到当前文件目录下了。 参考:http://blog.csdn.net/hyr83960944/article/details/38067499
        
阅读全文
摘要:【Activty左出右进动画】 public void overridePendingTransition (int enterAnim, int exitAnim) 其中: enterAnim 定义Activity进入屏幕时的动画 exitAnim 定义Activity退出屏幕时的动画 overr
        
阅读全文
摘要:【销售案例】 1、农村包围城市。 2、策反其它玩家
        
阅读全文
摘要:【愿景、使命、价值观】 愿景就是梦想;使命就是职业;价值观就是道德。如果把赚钱当梦想,那么每个员工都会仅仅思考如何实现个人利益最大化,偷懒、腐败防不胜防。 愿景,英文叫Vision,就是一幅描绘了美好未来的图景。你要想想,因为你的存在,10年、20年后的世界是什么样子。画面感越强、越能激发憧憬。 改
        
阅读全文
摘要:【5分钟商学院】 1、你看到的并不是真实的世界,而只是世界在你心中那面镜子上的投影。不要追求投影,也就是观点、价值观的一致。相反,你应该尊重观点的差异,感激团队的多样性。如果两个观点完全相同,那么其中一人必属多余。-138 2、最差的合作就是报仇。我宁愿重伤也要让你死,或者我宁愿死也要让你重伤。报仇
        
阅读全文
摘要:【sqlite3调试】 1、adb shell 激活模拟器shell。 2、cd /data/data/com.xxx.xxx/databases 进入app 数据库目录。 3、ls 查看有哪些数据库,如: 4、sqlite3 xxx.db 打开数据库shell。 5、.tables 查看有哪些表。
        
阅读全文
摘要:【select字符串】 select通常用于选择某中的某一列。如有表Download: 通常用select选择某一列,如: 当select一个字符串时,则会返回如下值: 结论:select中传递一个字符串时,value与列头将均是该字符串。
        
阅读全文