![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
ppdouble
这个作者很懒,什么都没留下…
展开
-
JavaScript使用笔记
删除属性 Some Div //adiv now contains no style at all document.getElementById("adiv").removeAttribute("style") http://www.javascriptkit.com/dhtmltutors/domattribute.shtml原创 2014-01-09 19:38:20 · 618 阅读 · 0 评论 -
程序中执行shell命令
python import os os.system("ls")原创 2014-03-11 11:02:29 · 752 阅读 · 0 评论 -
字符串处理笔记-查找指定字符在字符串中的位置
Python 查找指定字符的位置 index 和 find http://stackoverflow.com/questions/2294493/how-to-get-the-position-of-a-character-in-python原创 2014-06-24 16:29:26 · 1214 阅读 · 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 · 727 阅读 · 0 评论 -
Jquery使用笔记
$(this).children().first().each(function(){ // });对第一个孩子,做操作。原创 2013-12-12 19:37:14 · 572 阅读 · 0 评论 -
字符串处理笔记-截取字符串
Python Windows 7 >>> s="中国路13号弄" >>> s.find("号") 8 MAC OSX10.9.2 >>> s="中国路13号弄" >>> s.find("号") 11原创 2014-06-24 16:39:13 · 770 阅读 · 0 评论