
JavaScript
ppdouble
这个作者很懒,什么都没留下…
展开
-
JavaScript使用笔记
删除属性Some Div//adiv now contains no style at alldocument.getElementById("adiv").removeAttribute("style")http://www.javascriptkit.com/dhtmltutors/domattribute.shtml原创 2014-01-09 19:38:20 · 639 阅读 · 0 评论 -
程序中执行shell命令
pythonimport osos.system("ls")原创 2014-03-11 11:02:29 · 778 阅读 · 0 评论 -
字符串处理笔记-查找指定字符在字符串中的位置
Python查找指定字符的位置index 和 findhttp://stackoverflow.com/questions/2294493/how-to-get-the-position-of-a-character-in-python原创 2014-06-24 16:29:26 · 1248 阅读 · 0 评论 -
字符串处理笔记-获得字符串长度
Shell获得str的长度${#str} 从pos开始截取l个,不包含pos位置${str:pos:l}从pos开始截取l个字符,包含pos位置expr substr "$str" 2 $l忽略特殊字符使用 ' 'rm -rf 'fo o' 忽略了空格原创 2014-06-26 13:57:10 · 772 阅读 · 0 评论 -
Jquery使用笔记
$(this).children().first().each(function(){//});对第一个孩子,做操作。原创 2013-12-12 19:37:14 · 595 阅读 · 0 评论 -
字符串处理笔记-截取字符串
PythonWindows 7>>> s="中国路13号弄">>> s.find("号")8MAC OSX10.9.2>>> s="中国路13号弄">>> s.find("号")11原创 2014-06-24 16:39:13 · 806 阅读 · 0 评论