有些初学者对callback 不是很理解 这里贴出一段代码 希望对大家有帮助function main(opts,callback) { alert("主方法:"+opts.name); callback&& $.isFunction(callback)?callback():...
分类:
编程语言 时间:
2015-01-31 12:02:11
阅读次数:
227
function Person(opts) { var def = { name: '何XX', age: 10, sex: '男' }; opts = $.extend(def,opts); this.name = opts.name; this.age = opts....
分类:
其他好文 时间:
2015-01-30 17:32:00
阅读次数:
187
1、Linux中配置tomcat在catalina.sh中添加如下CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"(不要换行,要在同一行)2、Window中修改catalina,...
分类:
系统相关 时间:
2015-01-29 20:47:11
阅读次数:
207
Xcode6使用storyboard拖拖约束很快就搭建出来项目,针对有些不能拖的,还是需要手动实现约束的。
稍微研究了下NSLayoutContraint,使用起来也还算是方便。
+ (NSArray *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts
metrics:...
分类:
其他好文 时间:
2015-01-29 17:46:18
阅读次数:
96
启动脚本将JAVA_OPTS参数设置: vi ?/etc/rc.d/init.d/tomcat #!/bin/bash
#?chkconfig:?2345?10?90
#?description:?Starts?and?Stops?the?Tomcat?daemon.
?
export?CATALINA_HOME=/usr/local/tomc...
分类:
其他好文 时间:
2015-01-28 19:58:32
阅读次数:
321
/*StateMachine*/ var StateMachine = (function(){ function StateMachine(opts){ this.current = opts.initial||'none' this.e...
分类:
Web程序 时间:
2015-01-28 19:26:54
阅读次数:
197
Tomcat启动内存设置Tomcat的启动分为startupo.bat启动和注册为windows服务的启动,下面一一说明。1.startup.bat启动在tomcat_home/bin目录下找到catalina.bat,用文本编辑器打开,加上下面一行:set JAVA_OPTS= -Xms1024M...
分类:
其他好文 时间:
2015-01-28 12:51:50
阅读次数:
148
异常截图: 解决方法: export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"
分类:
编程语言 时间:
2015-01-23 17:45:40
阅读次数:
190
前提条件windows环境已安装JDKCentOS 环境已安装Tomcat进入目录 /usr/local/TC6_A/bin 目录下修改 catalina.shvi catalina.sh添加CATALINA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=1...
Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have this attribute, ...
分类:
其他好文 时间:
2015-01-21 18:22:50
阅读次数:
218