分享下javascript获取函数形参个数的方法。/** * 获取函数的形参个数 * @param {Function} func [要获取的函数] * @return {*} [形参的数组或undefind]* @site www.jbxue.com */function getFun...
分类:
编程语言 时间:
2014-08-01 06:59:01
阅读次数:
280
一、到官方上下载svn1.8.3,下载后的文件名叫site-1.8.3.zip地址:http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240这里有很多版本,请自己选择合适的;二、解压,删除解压后得到的文件中除了名叫features和plugins的两个文件夹以外的其他所有文件。方..
分类:
系统相关 时间:
2014-08-01 00:15:11
阅读次数:
275
创建审批工作流时,竟然发现模板里没有审批工作流的模板,查了一下,需要在网站设置里对模板进行激活才行。To activate a workflow for a site collectionVerify that you have the following administrative creden...
分类:
其他好文 时间:
2014-07-31 20:15:47
阅读次数:
225
进入subclipse官方网站下载页面? http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240? 下载你需要的版本 如1.8.22.zip? 下载完毕之后解压到site-1.x.xx的目录下(千万别直接解压到当前文...
分类:
系统相关 时间:
2014-07-31 17:25:47
阅读次数:
406
安全性—固若金汤 ? Xss跨站点脚本攻击cross site script.防止手段主要有两种:消毒; httponly? 注入攻击Sql注入和os注入.Sql注入防止手段: 消毒 参数绑定(预处理)? Csrf攻击cross site request forgery跨站点请求伪造 。防御手段主要是识别请求者身份。主要有;表单token; 验证码; referrer ch...
分类:
其他好文 时间:
2014-07-31 16:58:47
阅读次数:
161
http://golang.org/http://pitch.csspiffle.com/http://site.douban.com/106407/widget/notes/335509/note/247778936/http://www.csdn.net/article/2014-03-25/2...
分类:
Web程序 时间:
2014-07-31 02:19:35
阅读次数:
193
system:openSuSE 12.3(much better and frendly than the 12.1 in network config)1,network config,attention the Domain Name,site is the zone name,linux-jo...
分类:
其他好文 时间:
2014-07-30 23:10:55
阅读次数:
272
1.错误
/usr/lib/python2.5/site-packages/Cheetah/Compiler.py:1532: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully s...
分类:
移动开发 时间:
2014-07-30 17:35:24
阅读次数:
1427
1. 我们用 wrapper了WTForms的Flask-WTF扩展来处理表单生成和验证。
2. Cross-Site Request Forgery (CSRF) 保护
配置config,'SECRET_KEY'
3. Form class definition
from flask.ext.wtf import Form
from wtforms import St...
分类:
Web程序 时间:
2014-07-30 12:16:13
阅读次数:
355
之前我也是通过网上一些资料来学习sitemesh的,后来发现那些资料都比较老了,现在最近的已经是sitemesh3了而我之前看的是sitemesh2.3,今天重新去看了一些sitemesh3的资料,发现和2.3还是有点区别的。先不讲怎么使用把,先附上一图给小伙伴们。这张图是不是很清晰地表现了site...
分类:
其他好文 时间:
2014-07-29 13:48:58
阅读次数:
310