clientHeight 与 offsetHeight的区别和理解。 clientHeight: =( height + padding Height) Returns the height of the visible area for an object, in pixels. The value contains the height with the padding, but it does not include the scrollBar, border ...
阅读全文找不到AVD or SDK manager in Eclipse,网上查了一下,解决办法很简单: 进入Window --> Customize Perspective...-->Command Groups Availablity->选中Andriod SDK and AVD Manager即可。 原先工作的挺好的,后来重新安装了SDK后,就发现SDK Manager不工作,然后进入Eclipse后就找不到SDK Manager和AVM Manager.不知道是不是 ...
阅读全文jQuery.fn = jQuery.prototype = {..........}; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() {........}; jQuery.extend(.... ...
阅读全文http://www.w3schools.com/js/js_obj_regexp.asp 正则表达式是一种文本模式,包括普通字符(例如,a 到 z 之间的字母)和特殊字符(称为“元字符”)。模式描述在搜索文本时要匹配的一个或多个字符串。 正则表达式示例 /^\s*$/ 匹配空行。 /\d{2}-\d{5}/ 验证由两位数字、一个连字符再加 5 位数字组成的 ID 号。 /<\s*(\S+)(\s[^&g ...
阅读全文Mysql Server挂掉了,重启总是失败,异常提示: Starting MySQL.The server quit without updating PID file (/[FAILED]l/mysql/data/VM_1232.pid). 查看日志文件后发现有这么一段[ERROR]。 [ERROR]InnoDB: Cannot allocate memory for the buffer pool. 先不说这段ERROR,这段error只是说明了为什么mys ...
阅读全文使用wget下载jdk失败 命令: wget --no-cookies --no-check-certificate http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz 错误: --2015-08-26 01:43:19-- http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux ...
阅读全文dd --help 常用dd来创建大文件,如dd if=/dev/zero of=/mybigfile bs=128M count=0 seek=24 参数: 1. if=文件名:输入文件名,缺省为标准输入。即指定源文件。< if=input file > 2. of=文件名:输出文件名,缺省为标准输出。即指定目的文件。< of=output file > 3. ibs=bytes:一次读入bytes个字节,即指定一个块大小为by ...
阅读全文Lunt build 官网:http://luntbuild.javaforge.com/ Jenkins(原名Hudson) 官网:https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins ...
阅读全文Between the quotation marks of export PS1=” “, you can add the following lines to customize your Terminal prompt: \d – Current date \t – Current time \h – Host name \# – Command number \u – User ...
阅读全文Ace Anchor BackgroundTokenizer Document EditSession Editor Range Scrollbar Search Selection TokenIterator Tokenizer UndoManager VirtualRenderer Ace API Reference Welcome to the Ace API Refe ...
阅读全文有一个简单的需求就是如何使页面上的一个图片内容实现实时刷新; 什么意思呢?这样一个场景: 页面上有一个图片,src指向后台的一个图片链接,如名为test.jpg的图片。图片本身为后台实时产生更新的,如新浪股票信息走势图片。每一秒的图形都可能在变化。如何使页面实现这样的动态更新?简单的办法就是: var img = document.getElementById("test"); img['src'] = imgurl; 通过set ...
阅读全文为了对CKEDITOR编辑控件有更多的了解,简单抓取了其产生的页面中定义的CSS。主要想看看如何更好的对其更改样式,从而做到真正的WYSWYG。 抓取的这部分可以分为三大块: CKEDITOR可编辑区对应的CSS: .cke_editable{cursor:text} .cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default} CKEDITOR命令菜单对应的CSS。 ...
阅读全文skip-name-resolve skip-locking skip-innodb skip-bdb key_buffer = (1G内存推荐设置为256M,2G内存推荐设置为512M) wait_timeout = 3或者5 (2G内存推荐设置为5) max_connections = (如果访问量很大可以设置为512-1024,否则可以设置为384) memory_limit = (程序最多允许使用内存量, 2G内存建议设置为128M) post ...
阅读全文今天测试mac的scp命令时,使用后报错 bash: scp: command not found。 提示scp的命令找不到,但是查找发现命令是存在的 [root@localhost ~]# whereis scp scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz [root@localhost ~]# find / -name scp /usr/bin/scp 只有一个解释,那就是远程机器上没有安装scp。 ...
阅读全文shopt命令: 全写为shell option命令 顾名思义:shopt命令用于显示和设置shell中的行为选项,通过这些选项以增强shell易用性。shopt命令若不带任何参数选项,则可以显示所有可以设置的shell操作选项。 其语法: shopt 选项 参数 选项 -s:激活指定的shell行为选项; -u:关闭指定的shell行为选项。 参数 shell选项:指定要操作的shell选项。 例如bash shopt: ...
阅读全文http://developer.yahoo.com/yui/dragdrop/ Drag and Drop API Document: http://yui.github.io/yui2/docs/yui_2.9.0_full/docs/module_dragdrop.html The following configuration properties are currently supported via the contructor ...
阅读全文Installing the Certificates to the Keystore If you receive a message that says "Certificate already exists in system-wide CA keystore under alias <...> Do you still want to add it to your own keystore? [no]:", select Yes. If succes ...
阅读全文方法1: <input type=text style="border-style:none"> 方法2: 给input设置border:none;但在iE6下不行,还有边。应该将 border:none; 换成border:0; 这是ie6 的兼容性问题 或者<input type="text" name="sample" border="0"/> 方法3: ...
阅读全文YAHOO.example.Data = { menu: { breakfasts: [ "donuts", "omelette", "pancakes", "yogurt" ], lunches: [ "burrito", "hamburg ...
阅读全文java security model是Java的一个重要的架构特征,这个架构特征保证了Java可以作为网路环境程序开发的技术。因为在网络环境下的所有程序security安全是个重要因素。我们需要保证网络环境下下载的程序本地运行时安全的。 Java security model侧重于保护终端用户在运行从网络上下载的恶意程序时以免中招。实现这个目的就是通过可定制话的sandbox来实现的。一个java程序必须在这个sandbox中运行,这个sandbox可以禁止很多不安全的操作。哪些操作是不 ...
阅读全文