`
文章列表
一、inner joins A join based on the testing of equality between two tables is called equijoin. This kind of join is also called an inner join. SELECT vend_name, prod_name, prod_price FROM Vendors, Products WHERE Vendors.vend_id = Products.vend_id;     等价于:   SELECT vend_name, pr ...
  Clause Description Required SELECT Columns or expressions to be returned Yes FROM Table to retrieve data from Only if selecting data from a table WHERE Row-level filtering No GROUP BY Group specification Only if calc ...
ORDER BY GROUP BY Sorts generated output. Groups rows. The output might not be in group order, however. Any columns (even columns not selected) may be used. Only selected columns or expressions columns may be used, and every selected column expression must be used. ...
  The difference between HAVING and WHERE Here's another way to look it: WHERE filters before data is grouped, and HAVING filters after data is grouped. This is an important distinction; rows that are eliminated by a WHERE clause will not be included in the group. This could change the cal ...
使用setIconClass方法 Ext.getCmp('javaEye').setIconClass('javaEyeCss'); 其中"javaEye"是toolbar里的一个图标项,"javaEyeCss"是css里定义的一个样式,形如 .javaEyeCss{background: url( ../images/icon.gif)}
  expandnode : function(node){ if(node.childNodes.length>0){//展开节点时,更改父节点图标样式 node.getUI().getIconEl().src="folder-open.gif"; } //更改当前节点下的所有子节点的图标 for (var i = 0, len = node.childNodes.length; i < len; i++) { var curChild = node.childNodes[i]; curChild. ...
摘自互联网 任何项目都会在范围、时间及成本三个方面受到约束。项目管理,就是以科学的方法和工具,在范围、时间、成本三者之间寻找到一个合适的平衡点,以便项目所有干系人都尽可能的满意。 管理水平的高低,不只影 ...
1. Replacing HTML or text content   Command syntax:html() Obtains the HTML content of the first element in the matched set. Parameters none Returns The HTML content of the first matched element. The returned value is identical to accessing the innerHTML property of that element.     Command ...
1.Adding and removing class names   Command syntax:addClass(names) Adds the specified class name or class names to all elements in the wrapped set Parameters names (String) A string containing the class name to add or, if multiple class names are  to be added, a space-delimited string of class ...
1.Manipulating element properties Command syntax:each(iterator) Traverses all elements in the matched set invoking the passed iterator function for each. Parameters iterator (Function) A function called for each element in the matched set. The parameter passed to this function is set to the zero- ...
Remember, any jQuery wrapped set can be used as an array of element references.   1.Determining the size of the wrapped set Command syntax:size() Returns the count of elements in the wrapped set Parameters none Returns The element count   2.Obtaining elements from the wrapped set   Comman ...

$ in jQuery

1.The jQuery wrapper:Select and wrap DOM elements to operate upon The  $() function (an alias for the  jQuery() function) returns a special Java-Script object containing an array of the DOM elements that match the selector. Such as:      $("body > div");  //This selector selects ...
 To select elements using jQuery, we wrap the selector in $(), as in  $("p a.specialClass").   The  $() function (an alias for the  jQuery() function) returns a special Java-Script object containing an array of the DOM elements that match the selector.    (一).using basic css selectors, ...

js小知识

    博客分类:
  • js
//学习心得,如有误,欢迎指正; //1.面向对象定义变量: var a={x:1, y:2, z:{m:3,n:{o:[123,456],p:'abcdefg'}}, m:"javaeye", sayHi:function(str){ alert("hi, "+str); } }; //通过"."可以访问相应的属性:如: a.x==1 //true a.y==2 //true a.no //undef ...
以下部分内容翻译自 W3C 的 CSSOM View Module,W3C 工作草案 2008年2月22日。 在元素 A 上调用 offsetWidth 属性时,必须按以下算法返回结果值: 如果元素 A 不具有 CSS 布局盒子,则返回 0,并停止本算法。 以 CSS 像素为单位,返回元素 A 的边框盒子宽度。 在元素 A 上调用 offsetHeight 属性时,必须按以下算法返回结果值: 如果元素 A 不具有 CSS 布局盒子,则返回 0,并停止本算法。 以 CSS 像素为单位,返回元素 A 的
Global site tag (gtag.js) - Google Analytics