This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @name [getElementsByClassName] | |
* @overview [根据元素clsssName得到元素集合] | |
* @param {[string]} fatherId [父元素的ID,默认为document] | |
* @param {[string]} tagName [子元素的标签名] | |
* @param {[string]} className [用空格分开的className字符串] | |
* | |
* @author unknown | |
*/ | |
function getElementsByClassName(fatherId,tagName,className){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* [parseURI 解析URI的内容,返回键值对的对象] | |
* @param {[string]} uri [要解析的URI值] | |
* @return {[obj]} [URI的键值对的对象] | |
* @author 水中月明(shuizhongyueming@gmail.com) | |
*/ | |
function parseURI(uri){ | |
var uri = uri || window.location.search; // 默认使用当前页面的uri值 | |
try{ | |
uri = uri.replace("?",""); // 去除? |
NewerOlder