摘要: 1、去掉jquerymobile自带的样式: 为元素添加data-role="none" 即可 阅读全文
posted @ 2013-02-20 17:19 xuedong09 阅读(126) 评论(0) 推荐(1) 编辑
摘要: 描述:获取url中所有参数,返回一个以参数名为下标,参数值为值的数组对象。例:[key-value, key-value,...]getUrlParam = function () { var vars = []; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split("&"); for (var i = 0; i < hashes.length; i++) { hash = hashes[i].split("=&quo 阅读全文
posted @ 2013-02-20 11:15 xuedong09 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 1、设置line-height可以使div中的文字居中2、div通过设置css,使内容自动换行,word-break: break-all;3、a标签去掉下划线,用css样式:text-decoration: none; 阅读全文
posted @ 2013-02-17 14:50 xuedong09 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、要实现在输入筐内输入内容及时更新,可以用jQuery给input对象绑定,keyup函数,来实现 阅读全文
posted @ 2013-02-17 14:49 xuedong09 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、给页面文档添加一个点击事件函数,在函数内实现隐藏菜单功能。 $('html').click(function(){//Hide the menus if visible});2、对于菜单本身不希望在点击它时将自己隐藏,需要为菜单本身的点击事件添加以下方法,用来阻止点击事件的传播。 $('#menucontainer').click(function(event){event.stopPropagation();});参考资料:http://stackoverflow.com/questions/152975/how-to-detect-a-click-out 阅读全文
posted @ 2013-02-17 10:39 xuedong09 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 1、使用centos时每次双击文件夹时都给我打开一个新的窗口,这点很不爽:原文出处:Linux下双击文件夹时不要每次都打开窗口(http://blog.csdn.net/lcathm/article/details/6319206)2、tar命令详解:格式:tar选项文件目录列表功能:对文件目录进行打包备份选项:-c建立新的归档文件-r向归档文件末尾追加文件-x从归档文件中解出文件-O将文件解开到标准输出-v处理过程中输出相关信息-f对普通文件操作-z调用gzip来压缩归档文件,与-x联用时调用gzip完成解压缩-Z调用compress来压缩归档文件,与-x联用时调用compress完成解压缩 阅读全文
posted @ 2013-02-08 22:07 xuedong09 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 用xcode+phonegap 开发ios手机应用的时候,xcode会缓存文件,每次更新文件,重新编译时新更新的功能,并未不能使用。这时应当在编译之前,先product->clean一下,让后再编译执行。新功能可以使用了。 阅读全文
posted @ 2013-02-01 17:13 xuedong09 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Yes, withdiredmode, you can:C-x dRto rename the file (ordired-do-rename).C-x k RETto go back to the (renamed) bufferThe rename is equivalent to a shellmv, but will also update any open buffers.C-x d 进入dired mode选择需要重命名的文件,按R进行重命名C-x k 删除重命名的缓存,完成重命名。原文链接:http://stackoverflow.com/questions/384284/can 阅读全文
posted @ 2013-02-01 17:03 xuedong09 阅读(120) 评论(0) 推荐(0) 编辑
摘要: "jQuery Mobile does not pull the whole page into the dom, it grabs thefirstdata-role="page"element and its descendants and pulls that into the current dom.So any scripts in the<head>of the document will not be included.I generally put all the functional JavaScript for my site on 阅读全文
posted @ 2013-02-01 15:47 xuedong09 阅读(836) 评论(0) 推荐(0) 编辑