当js代码需要调用其他js文件的方法时,就需要用到require引入其他js文件例:1、桌面新建一个test.js文件 cd Desktop touch test.js2、进入该js文件 vim test.js3、输入“i”进行编辑该js文件 例如输入内容: var a = 12; co...
分类:
编程语言 时间:
2014-09-18 11:15:23
阅读次数:
146
Object copyAnobject copyis an action in computing where a data object has itsattributescopied to another object of the same data type. Anobjectis a co...
分类:
其他好文 时间:
2014-09-18 06:27:33
阅读次数:
164
一、浏览器存储的发展历程本地存储解决方案很多,比如Flash SharedObject、Google Gears、Cookie、DOM Storage、User Data、window.name、Silverlight、Open Database等。借用网上的一张图来看下目前主流的本地存储方案:Co...
分类:
Web程序 时间:
2014-09-18 00:39:33
阅读次数:
339
1. [代码][JavaScript]代码 //调用说明//$(selector).bub($(selector) | string[, options]);//示例: $('#demo1').bub('hello, world!');//options 说明//defaults: {// co.....
分类:
Web程序 时间:
2014-09-17 18:17:52
阅读次数:
256
XSScrapy是一个快速、直接的XSS漏洞检测爬虫,你只需要一个URL,它便可以帮助你发现XSS跨站脚本漏洞。XSScrapy的XSS漏洞攻击测试向量将会覆盖Http头中的Referer字段User-Agent字段Cookie表单(包括隐藏表单)URL参数RUL末尾,如www.example.co...
分类:
其他好文 时间:
2014-09-17 11:45:42
阅读次数:
204
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:
其他好文 时间:
2014-09-17 11:35:22
阅读次数:
186
//avl_tree.h
#include
using std::stack;
template
class AVL_TREE
{
public:
AVL_TREE(){
nil = new AVL_NODE(0, -1, NULL, NULL);
tree_root = nil;
}
bool find(const T &val) const;
void insert(co...
分类:
其他好文 时间:
2014-09-16 23:44:51
阅读次数:
272
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
*
* ClassName ShowChineseInUnicodeBlock
*
*
* Description 提供判断字符串是中文或者是英文的一种思路
*
*
* @author wangxu wangx89@126.co...
分类:
其他好文 时间:
2014-09-16 20:42:01
阅读次数:
193
下面两个配置有简洁的包依赖冲突:
org.slf4j
slf4j-api
1.7.5
org.slf4j
slf4j-simple
1.7.5
kr.co.vcnc.hae...
分类:
其他好文 时间:
2014-09-16 16:02:00
阅读次数:
163
Unable to find ‘struts.multipart.saveDir’ Struts2上传文件错误的解决方法在使用struts2的项目中上传文件的时候出现了一个这样的错误:2011-7-30 20:29:02 com.opensymphony.xwork2.util.logging.co...
分类:
其他好文 时间:
2014-09-16 15:36:30
阅读次数:
144