`
文章列表
- 长度已知:使用数组 初始化数组时,必须指定数组的长度。 也就是数组的长度是已知的。不然回报 java.lang.NullPointerException错误。 例如:这样使用数组 //用法1、声明和初始化分开 String[] strA ; strA = new String[5]; //用法2、也可以和起来 String[] str2A = new String[5];//赋空值 String[] str3A = {"aa","bb","cc","dd"} ...
把 layout 设为 'form' 只有用这个布局才能把label 显示出来 -
原因: 没有设height 首先 要设置一个高度 height:400 然后 再autoScroll: true var formPanel = new Ext.FormPanel({ autoScroll:true, height: 400, items : [] }); 引用: http://bbs.csdn.net/topics/280012147 -
示例一、 <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script type="text/javascript"> var obj = {value:2000}; var v ...
代码: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <div id="time_bar"></div> <script type="te ...
javascript之function的this 一、this 的定义 与 函数的调用 在 javascript 中, function 中的 this 指代的是: 调用 function 执行时的上下文。 也就是说,调用哪个对象的 function,this就指代哪个对象。默认是 window 对象。 1. this 可以指代一 ...
nodejs官网: http://nodejs.org/ nodejs 在线阅读: http://www.nodebeginner.org/index-zh-cn.html nodejs 介绍 : http://www.ibm.com/developerworks/cn/opensource/os-nodejs/ nodejs讨论: http://www.zhihu.com/question/19653241 -
    一、自定义构造函数     即:通过使用 new 操作符调用函数来构造对象。     //定义一个函数 var Person = function(name){ this.name = name; this.sayHello = function(){ return "Hi, my name is " + this.name + "."; } } //使用 new 操作符调用函数 var tom = new ...
1、 <html> <head> <title></title> </head> <body> <script type="text/javascript"> function A(){ var a=1; } A.prototype.get=function(){ return a; } A.prototype.set=function(value){ a= ...
<!DOCTYPE HTML> <html> <head> <title>JS完整获取IE浏览器信息</title> <meta charset="utf-8"/> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="435" ...
-- -- --将 user_info 表中 login_name 字段的值赋值给 name 字段 update user_info set user_info.name =( select b.login_name from user_info b where b.id = user_info.id ) -- -- 引用: http://zhidao.baidu.com/question/92764854.html -
Set (集合)是无序、不可以重复的 List(列表)是有序、可以重复的 Map (映射)是键-值对:Map<key , value> 既然set集合是无序的,它的存取值与哈希算法是分不开的。 因为它在存储时的内存地址,完全可以是这个值本身 ...
1、JavaScript的作用域链 2、函数体内部,局部变量的优先级比同名的全局变量高。 3、JavaScript没有块级作用域。 4、function hoisting 5、未使用var关键字定义的变量都是全局变量。 6、全局变量都是window对象的属性 1、JavaScript的作用域链 首先看下下面这段代码: <script type="text/javascript"> var rain = 1; function rainman(){ var man = 2; funct ...
【参考了别人的文章】我们做技术,经常在写页面的时候需要多次刷新测试,可是浏览器都有自己的 缓存机制,一般CSS和图片都会被缓存在本地,这样我们修改的CSS就看不到效果 了,每次都去清空缓存,再刷新看效果,这样操作太麻烦了。在IE下我们可以直接 去修改internet选项/常规/浏览历史记录/到internet临时文件选项的设置中,将检查网页中的较新版 本改成每次访问此页时检查。这样我们就不用去清空缓存,每次刷新都能看到最新 的网页内容了。   以下内容由BIWEB网站系统创始人ArthurXF倾情奉献,那么在firefox我们找遍 了所有的设置选项,竟然没有发现向IE那样的每次访问此页检查的 ...
1、问题: 如果 position : absolute ,如何又相对定位? 就是相对父元素,的绝对定位。 2、答案 当 父元素 的 position 设为 relative 时, 其子元素的 absolute position 是按照父元素的相对位置来的 3、示例 <html><head> <styl ...
Global site tag (gtag.js) - Google Analytics