React设置宽度的坑
    
            
摘要:【React设置宽度的坑】 我们知道通过ref可以获取DOM元素,通过style属性可以给此DOM元素添加样式。 但下面两行的赋值是无效的: 因为style中的width、height是有单位的,必须加上px才是有效的赋值。所以要改成下面这样
        
阅读全文
摘要:【不可重复读和幻读的区别】 在可重复读中,该sql第一次读取到数据后,就将这些数据加锁,其它事务无法修改这些数据,就可以实现可重复 读了。但这种方法却无法锁住insert的数据,所以当事务A先前读取了数据,或者修改了全部数据,事务B还是可以insert数据提交,这时事务A就会 发现莫名其妙多了一条之
        
阅读全文
摘要:【ReactCSSTransitionGroup】 ReactCSSTransitionGroup is a high-level API based on ReactTransitionGroup and is an easy way to perform CSS transitions and 
        
阅读全文
摘要:【CSS Transition】 CSS transitions provide a way to control animation speed when changing CSS properties. Instead of having property changes take effect
        
阅读全文
摘要:【CSS3动画】 首先通过@keyframe创建动画 或 然后通过animation属性来指定动画 【animation-fill-mode】 参考: 1、http://www.w3school.com.cn/css3/css3_animation.asp 2、http://www.w3school
        
阅读全文
摘要:【prompt】 prompt() 方法用于显示可提示用户进行输入的对话框。 如果用户单击提示框的取消按钮,则返回 null。如果用户单击确认按钮,则返回输入字段当前显示的文本。 在用户点击确定按钮或取消按钮把对话框关闭之前,它将阻止用户对浏览器的所有输入。在调用 prompt() 时,将暂停对 J
        
阅读全文
摘要:【Binary Logging Formats】 The server uses several logging formats to record information in the binary log. The exact format employed depends on the ver
        
阅读全文
摘要:【Physical (Raw) Versus Logical Backups】 Physical backups consist of raw copies of the directories and files that store database contents. This type of
        
阅读全文
摘要:【React Mixins】 ES6 launched without any mixin support. Therefore, there is no support for mixins when you use React with ES6 classes. We also found nu
        
阅读全文
摘要:【预览InputFile】 通过input的files属性,可以取到选择的File对象,通过FileReader可以将File对象读取出来。 参考:https://zhidao.baidu.com/question/872147854254047812.html
        
阅读全文
摘要:【Base64 Encoding / Decoding in Node.js】 Here is how you encode normal text to base64 in Node.js: And here is how you decode base64 encoded strings: If
        
阅读全文
摘要:【node-pre-gyp install --fallback-to-build 错误】 npm install bcrypt时遇上错误 此时,安装node-gyp 然后,再安装bcrypt即可。 【node-gyp】 Node.js native addon build tool node-gy
        
阅读全文
摘要:【login shell 和 non-login shell 的区别】 login shell:去的bash时需要完整的登录流程。就是说通过输入账号和密码登录系统,此时取得的shell称为login shell non-login shell:取得sbash接口的方法不需要重复登录的举动。如以X W
        
阅读全文
摘要:【JavaScript Drag处理】 在拖动目标上触发事件 (源元素): ondragstart - 用户开始拖动元素时触发 ondrag - 元素正在拖动时触发 ondragend - 用户完成元素拖动后触发 释放目标时触发的事件: ondragenter - 当被鼠标拖动的对象进入其容器范围内
        
阅读全文
摘要:【Linux下SVN server 的使用及权限配置】 参考:http://www.cnblogs.com/heinoc/p/3805779.html
        
阅读全文
摘要:【Linux系统服务之inetd】 inetd的角色是作为Telnet和FTP等与网络服务器相关的进程的“超级服务器”。这是一个简单的道理:并不是全部的服务器进程(包括那些接受新的Telnet和FTP连接的进程)都会如此频繁地被调用,以至于必须要有一个程序随时运行在内存中。因此为了避免出现可能有几十
        
阅读全文