`
编程足球
  • 浏览: 251235 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表
1. 认识properties文件 1、properties文件是一个文本文件 2、properties文件的语法有两种,一种是注释,一种属性配置。 注    释:前面加上#号 属性配置:以“键=值”的方式书写一个属性的配置信息。 3、properties文件的一个属性配置信息值可以换行,但键不可以换行。值换行用“\”表示。 4、properties的属性配置键值前后的空格在解析时候会被忽略。 5、properties文件可以只有键而没有值。也可以仅有键和等号而没有值,但无论如何一个属性配置不能没有键。 #格式良好的properties文件 aaa=111 bbb=222 ...
1. 简介与语法 apply 1. 语法 fun.apply(thisArg[, argsArray]) 2. 参数 thisArg The value of this provided for the call to fun. Note that this may not be the actual value seen by the method: if the method is a function in non-strict mode code, null and undefined will be replaced with the global object, and pri ...
1、若网页中含有< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >这一行代码,则应该使用document.documentElement 2、若网页中只有而没有上面的一行代码,则JS脚本应该使用document.body document.body.clientWidth; //网页可见区域宽 document.body.clientHeigh ...

转义字符

    博客分类:
  • HTML
HTML字符实体(Character Entities),转义字符串(Escape Sequence) 1. 说明 HTML中<,>,&等有特殊含义(<,>,用于链接签,&用于转义),不能直接使用。这些符号是不显示在我们最终看到的网页里的,那如果我们希望在 ...

StringUtil

 
String.format /** * Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each * token must be unique, and must increment in the format {0}, {1}, etc. Example usage: * <pre><code> var cls = 'my-class', text = 'Some ...
tools: [ {id:'toggle'},{id:'close'},{id:'minimize'},{id:'maximize'},{id:'restore'},{id:'gear'},{id:'pin'},{id:'unpin'},{id:'right'},{id:'left'},{id:'up'},{id:'down'},{id:'refresh'},{id:'minus'},{id:'plus'},{id:'help'},{id:'search'},{id:'save'},{id:'print'} ] eg: discussWin = new Ext.Window({ ...
1. load()的源码 // 加载Store的数据 load : function(options) { //1. 自定义的参数 options = Ext.apply({}, options); //2.删除对象中的callback 和 scope属性,并且保存本次查询的参数 this.storeOptions(options); //3. 如果是远程排序,则需要设置(服务器端排序) if(this.sortInfo && this.remoteSort){ var pn = this.paramNames; option ...
1. 查看ext-base.js中的源码可知: Ext.apply()源码 /** * Copies all the properties of config to obj. * @param {Object} obj The receiver of the properties(目标) * @param {Object} config The source of the properties(数据源) * @param {Object} defaults A different object that will also be applied for default va ...
题目1 /*全局(window)域下的一段代码*/ function a(i) { var i; alert(i); }; a(10); /* 输出结果是: 10 分析: a 函数有一个形参 i,调用 a 函数时传入实参 10,形参 i=10 接着定义一个同名的局部变量 i,未赋值 alert 输出 10 */ 题目2 function a(i) { alert(i); alert(arguments[0]); var i = 2; alert(i); alert( ...
1.javascript解析过程 如果一个文档流中包含多个script代码段(用script标签分隔的js代码或引入的js文件),它们的运行顺序是: 步骤1. 读入第一个代码段(js执行引擎并非一行一行地执行程序,而是一段一段地分析执行的) 步骤2. 做语法分析,有错则报语法错误(比如括号不匹配等),并跳转到步骤5 步骤3. 对var变量和function定义做“预解析”(永远不会报错的,因为只解析正确的声明) 步骤4. 执行代码段,有错则报错(比如变量未定义) 步骤5. 如果还有下一个代码段,则读入下一个代码段,重复步骤2 步骤6. 结束 javascript解析模拟 1. 待解析的js ...
1. 调用 1.1 函数调用 function f(){ // TODO xxxx } f();// 函数调用 1.2方法调用 var obj = { m:function(){ // TODO xxxx } } obj.m(); 区别: 函数调用在ECMAScript3和非严格下的ECMAScript5调用的上下文是(this)全局对象,但 ...

while 和 for 不完全相同

    博客分类:
  • java
 
1. for和while的语法如下: for(initialize;test;increment){ statement; } initialize while(test){ statement; increment; } 2. 一般情况下for 和 while 的效果是一样的. private static void forSameWhile() { int sum = 0; for (int i = 0; i < 10; sum += i++) { } System.out.print ...
1. ext-basex.js 下载地址. http://code.google.com/p/ext-basex/ 2. 引入同步所需的包ext-basex.js 3. 进行测试: Ext.Ajax.request({ url : 'servlet/originalRequire?type=checkOrId', method: 'GET', async : false, success : function(response) { alert("提交了"); }, failure : function() { Ext.Msg.al ...
直接上代码: public static void main(String[] args) { int a = 1; int b = 1; System.out.println((a++) + a);//3 System.out.println(b + (b++));//2 }
在使用hibernate过程中有许多查询需要用到sql原生语句进行查询。同时又希望查询结果可以直接保存到POJO对象中。下面给出hibernate的实现方式。 需求: 查询如下表: 查询结果的同时判断该节点是否是叶子节点(树形结构),可以通过 ...
Global site tag (gtag.js) - Google Analytics