好好爱自己!

上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 179 下一页
摘要: 使用phpstorm 来编写php 和javascript 代码,感觉还是不错的,用得也很舒服。 遇到了一个需求,有时候在阅读框架源代码的时候 , 想过滤(删除)掉源代码中的注释行,如果手动逐行删除显示不够科学。 当然想到了强大的正则匹配(regExp regular expression), 通过 阅读全文
posted @ 2016-04-19 00:28 立志做一个好的程序员 阅读(3849) 评论(0) 推荐(0)
摘要: 1. jQuery has a method that can be used to deep-clone objects, the$.extend() function. Let’s take a look at how it can be used: 注意:Pretty handy, eh? T 阅读全文
posted @ 2016-04-18 10:32 立志做一个好的程序员 阅读(221) 评论(0) 推荐(0)
摘要: 第一种:对象冒充 注意: 所有新属性和新方法都必须在删除了新方法的代码行后定义。否则,可能会覆盖超类的相关属性和方法: 第二种: 通过Function 对象上面的call, apply方法来实现继承。 第三种:原型链 prototype 属性对象。 注意:调用 ClassA 的构造函数,没有给它传递 阅读全文
posted @ 2016-04-13 19:51 立志做一个好的程序员 阅读(295) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/13333794/networking-difference-between-transport-layer-and-networking-layer Transport Layer: The fourth and “middle 阅读全文
posted @ 2016-04-13 14:20 立志做一个好的程序员 阅读(702) 评论(0) 推荐(0)
摘要: var n = {1:100, 2:101, 3:102, 4:103}; 怎么获取这个对象n的长度呢? 方法一: function getLength(obj){ var count = 0; for(var i in n){ count++; } return count; } //改进 加上一 阅读全文
posted @ 2016-04-12 00:37 立志做一个好的程序员 阅读(25632) 评论(0) 推荐(0)
摘要: 原文地址:http://cnodejs.org/topic/5230d5f0101e574521c86ff4 JavaScript 的设计是典型的函数式的编程范式匿名函数 JSON数据本身就是字符串,经过JSON.parse才转化为javascript对象,你在console中输入的是对象,而不是J 阅读全文
posted @ 2016-04-07 09:33 立志做一个好的程序员 阅读(518) 评论(0) 推荐(0)
摘要: 若果里面没return 的话; 什么是闭包(closure function ) Two one sentence summaries: a closure is the local variables for a function — kept alive after the function h 阅读全文
posted @ 2016-04-01 00:46 立志做一个好的程序员 阅读(459) 评论(0) 推荐(0)
摘要: html 页面内容 阅读全文
posted @ 2016-03-25 16:11 立志做一个好的程序员 阅读(707) 评论(0) 推荐(0)
摘要: vim /data/yst.txt 打开一个文件之后,然后在命令行模式下,输入:help 可以调出 vim 的帮助文档。 然后会进入: 然后就可以查阅具体的帮助文档了,再也不用再网上找一些零散的vim编辑器的使用介绍了。。累 阅读全文
posted @ 2016-03-22 00:58 立志做一个好的程序员 阅读(198) 评论(0) 推荐(0)
摘要: 查看Linux的内核版本 当前系统的发行版信息(distribution):lsb_release -a , lsb(linux standard Base) and distribution information。 用这个命令可以知道是Redhat ,centos, ubuntu. 和具体的版本 阅读全文
posted @ 2016-03-22 00:13 立志做一个好的程序员 阅读(272) 评论(0) 推荐(0)
上一页 1 ··· 166 167 168 169 170 171 172 173 174 ··· 179 下一页

不断学习创作,与自己快乐相处