程序人生

JS设置页面下拉刷新当前页面

//滑动动作 // $(body).on(touchstart,touchStart); // $(body).on(touchmove,touchMove); // $(body).on(touchend,touchEnd); document.body.addEventListener(touchstart, touchStart, false); document.body.addEventListener(touchmove, touchMove, f...

程序人生

Ubuntu 12.04 GCC4.7启用C++11

Ubuntu 12.04 GCC4.7启用C++11,如果Ubuntu 12.04 系统中存在多个版本的GCC,可以在CMake工程的顶层的CMakeLists.txt中配置:...

程序人生

root 与su root的区别

su - root 是切换到root账号使用,使用的是root用户的环境变量;su root 则是取得root的特权,以root的身份执行程序,但保...