//原型创建对象function Box(){};Box.prototype.name = 'Lee';Box.prototype.age = 100;Box.prototype.run = function(){ return this.name + this.age + 'running....
分类:
其他好文 时间:
2014-08-17 15:30:22
阅读次数:
179
//构造函数创建对象function Box(name,age){ //创建一个对象 this.name = name; //添加一个属性 this.age = age; this.run = function(){ return this...
分类:
其他好文 时间:
2014-08-17 15:25:42
阅读次数:
137
CommandActionNotesvim file +54open file and go to line 54any : command can be run using + on command linevim -O file1 file2open file1 and file2 side b...
分类:
其他好文 时间:
2014-08-16 22:23:41
阅读次数:
297
做web项目时,常常会遇到改动了代码,但浏览器端没有生效,原因是多种多样的,我会依据我遇到的情况逐步更新解决的方法1.执行的时候採用debug模式,普通情况下使用项目部署button右边那个button下的tomcat7中的run即可,假设使用的是serves中的run serves,这样的情况貌似...
分类:
Web程序 时间:
2014-08-16 19:44:00
阅读次数:
199
在混淆的时候报错了,错误描述大致如下:Could not find a compatible version of ildasm to run on assembly C:\xxx.dllThis assembly was originally built with .NET Framework v...
分类:
Web程序 时间:
2014-08-16 16:24:30
阅读次数:
333
今天在ubuntu下安装任何软件都提示以下错误:You might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies:kate : Depends: kde...
分类:
其他好文 时间:
2014-08-16 13:49:20
阅读次数:
454
注释 注释不能美化糟糕的代码 用代码来阐述你的思路 好的注释是什么? 法律信息 提供信息的注释 对意图的解释 警示:例如 // Don‘t run unless you have some time to kill TODO注释 公共API的JavaD...
分类:
其他好文 时间:
2014-08-15 19:26:19
阅读次数:
217
1、Server端下载rsync-3.1.1pre2.tar.gz#tarzxvfrsync-3.1.1pre2.tar.gz#cd./rsync-3.1.1pre2#./configure--prefix=/usr/local/rsync#make&&makeinstall#vim/etc/rsyncd.conf uid=nobody gid=nobody usechroot=no maxconnections=10 strictmodes=yes pidfile=/var/run/..
分类:
其他好文 时间:
2014-08-15 18:03:49
阅读次数:
212
一.输出log如何获得Linux下make的log? 如何保存控制台对话? 如何将编译过程的信息保存成日志? 编译的过程可能会出错,导致编译过程无法继续进行。详细分析出错信息,有助于解决源码中的语法错误。 那么如何保存配置编译过程的信息?这些信息量很大,都可能超出Shell向上翻滚查看的范围。最好....
分类:
其他好文 时间:
2014-08-15 12:17:38
阅读次数:
1079
phonegap3.0之后就将项目的生成方式做了很大的更改,原来是在eclipse里面修改生成并编译运行,但是3.0之后它的目录结构发生了很大变化,只修改主目录下面的index.html如果不build的话有时候是不起作用的,因为它的platform文件夹中还有各个平台的目录。比如安卓和IOS,在主...
分类:
其他好文 时间:
2014-08-15 12:12:08
阅读次数:
172