科学网

 找回密码
  注册
如何用jquery获取当前页面url传入的参数
孙鹏 2015-3-3 18:23
参考: http://www.designchemical.com/blog/index.php/jquery/8-useful-jquery-snippets-for-urls-querystrings/ http://stackoverflow.com/questions/406192/get-current-url-in-javascript/4673540#4673540 这里把代码摘录一下: var vars = ; if(q != undefined){ ...
个人分类: js|14323 次阅读|没有评论
使用jquerymobile时,如何让data-rel="back" 返回时不再刷新页面
孙鹏 2015-2-18 16:03
先说结论: $(document).on('ready', function(){ //这里是你的事件 }); 下面我们来分析一下,首先看一下page的事件顺序,可参考: http://www.gajotres.net/page-events-order-in-jquery-mobile-version-1-4-update/ http://www.gajotres.net/page-events-order-in-jquery-mobile/ 这里做个 ...
个人分类: js|15434 次阅读|没有评论
错误解决: Failed to find: play-service-wearable+
孙鹏 2014-12-8 17:18
第一次使用Android Studio(我的是0.8.6Beata)新创建一个带wear的项目时,会报错: failed to find play-service-wearable+,如下图: 那么如何解决呢? 主要参考: http://www.tuicool.com/articles/yUb6be (注意文档中的 4. Update your extras (Google Play Services and Google Repository),只需要安装 ...
个人分类: android|2588 次阅读|没有评论
如何获得Java无符号byte的值
孙鹏 2014-9-16 17:58
如何获得Java无符号byte的值? /** * byte被看作无符号值转换成short * @param x * @return */ public static short getUnsignedByteValue(final byte x) { ByteBuffer tmpBuffer = By ...
个人分类: 杂七杂七加一|6082 次阅读|没有评论
关于赵炯《linux内核0.11完全注释》里不能用hexdump 目录的问题
孙鹏 2013-4-3 15:39
在RHEL6里若用: hexdump / hexdump: /: Is a directory 则无法直接对目录进行显示。 方法有二: 先确定/根目录的分区: df -lhT Filesystem Type Size Used Avail Use% Mounted on /dev/sda3 ext4 29G 5.6G 22G 21% / 然后: ...
个人分类: linux|5411 次阅读|没有评论
Autoconf的一些链接
孙鹏 2013-2-26 14:54
http://en.wikipedia.org/wiki/Autoconf http://autotoolset.sourceforge.net/tutorial.html#SEC1 http://www.lrde.epita.fr/~adl/autotools.html http://www.seul.org/docs/autotut/ http://www.gnu.org/prep/standards/ http://www.linuxdoc.org/HOWTO/Software-Release-Practice-HOWTO/index.html http://www.lrde.epita ...
个人分类: linux|3046 次阅读|没有评论
postgresql中关于md5认证的使用
孙鹏 2013-2-16 01:09
DBA要做的事(假设作为root登录): 1.首先创建一个临时密码文件,用于执行initdb(注:假设数据库初始化超级管理员用户为postgres,数据库密码12345,该密码可能和os的登录密码不同): # PWFILE=$(mktemp) echo 12345 ${PWFILE} chown postgres:postgres ${PWFILE} chmod 0600 ${PWFILE} ...
个人分类: linux|7405 次阅读|没有评论
RHEL下关闭某个端口
孙鹏 2013-2-15 19:08
有时由于某种原因,5432被占用,这时如果想关闭这个端口怎么做呢? 1.首先用如下命令查看端口占用情况: # netstat -ano 2.然后查看占用5432端口的程序pid: # lsof -i:5432 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME postgres 7035 postgres 3u IPv ...
个人分类: linux|4537 次阅读|没有评论

本页有 2 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-13 02:24

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部