Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScriptÊ÷

 
/** ÅäÖòÎÊý */
function TreeConfig() {
    this.showIco = true;
    this.showCheckBox = false;
    this.checkBoxName = "_TREE_CHECKBOX_";
    this.checkBoxRelated = false;
}
/**
* ½ÚµãÀà
* ½ÚµãĿǰĬÈÏÖ§³ÖµÄÊôÐÔÓÐ:
* text, url, target, cb, cbname, cbchecked, cbval, ico, icoFile, icoOpen
*/
function Node(id, parentId, attributes) {
    this.id         = id;  // ½Úµã×ÔÉíid
    this.parent     = parentId   || ""; // ¸¸id
    this.attributes = attributes || {}; // ½ÚµãÊôÐÔ
    this._created  = false;
    this._expanded = false;
    this._checked  = false;
}
// µÃµ½½ÚµãÊôÐÔ
Node.prototype.getAttribute = function(key) {
    var attr = this.attributes[key];
    return (attr==undefined || attr=="")? null : attr;
}
// µÃµ½½ÚµãÊôÐÔ
Node.prototype.setAttribute = function(key, value) {
    this.attributes[key] = value;
}
/** Ê÷Àà */
function TissonTree(instanceName, config) {
    this.instanceName = instanceName || "tree";  // ʵÀýÃû
    this.nodes = {};     // ËùÓнڵ㼯
    this.nodeArray = null; // °üº¬ËùÓнڵãµÄÊý×é
    this.nodeLink = {};  // ¸¸-×Ó½Úµã¶ÔÓ¦¹ØÏµ¼¯
    this.rootId = "-1";  // ĬÈϸù½Úµãid
    this._baseImagesPath = "/SmtCCS_tkms/images/tree/"; // ͼƬµÄ»ù±¾Â·¾¶
    this._checkedNodes = {};
    this.selectedNode = null;
    this.selectedNodeId = "";
    this.nextSearchIndex = 0;
    this.searchText = "";
    this.treeStage = null;
   &


Ïà¹ØÎĵµ£º

12¿îJavascript ±í¸ñ¿Ø¼þ£¨javaeye£©

    12¿îJavaScript±í¸ñ¿Ø¼þ¡£±í¸ñ¿Ø¼þ(DataGrid )ÔÊÐí×îÖÕÓû§ÔĶÁºÍдÈëµ½¾ø´ó¶àÊýÊý¾Ý¿âµÄÓ¦ÓóÌÐò¡£DataGrid ¿Ø¼þ¿ÉÒÔÔÚÉè¼ÆÊ±¿ìËÙ½øÐÐÅäÖã¬Ö»ÐèÉÙÁ¿´úÂë»òÎÞÐè´úÂë¡£µ±ÔÚÉè¼ÆÊ±ÉèÖÃÁËDataGrid ¿Ø¼þµÄ DataSource ÊôÐԺ󣬾ͻáÓÃÊý¾ÝÔ´µÄ¼Ç¼¼¯À´×Ô¶¯Ìî³ä¸Ã¿Ø¼þ£¬ÒÔ¼°×Ô¶¯ÉèÖøÿؼþµÄÁбêÍ·¡£È»ºóÄú¾Í ......

100¶à¸ö³£ÓÃjavascriptÓï¾ä

1.document.write(""); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window->(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËØµÄÃû³ÆºÍÖµ:document.getElementById("±íµ¥ÖÐÔªËØµÄID號").name(»òvalue)
6.Ò»¸öСдת´ ......

javascript »ñÈ¡URL²ÎÊý

function getQueryString(queryStringName)
{
 var returnValue="";
 var URLString=new String(document.location);
 var serachLocation=-1;
 var queryStringLength=queryStringName.length;
 do
 {
  serachLocation=URLString.indexOf(queryStringName+"\=");
  if ......

[´ÓjQuery¿´JavaScript]

¡¡¡¡Ñ§Ï°jQueryÒѾ­ÓаëÄêʱ¼äÁË¡£ÔÚʵ¼ÊÓ¦ÓÃÖУ¬»ù´¡º¯ÊýÒѾ­ËãÊǵÃÐÄÓ¦ÊÖÁË¡£µ«ÊÇ£¬¶ÔÓÚÎÒ×Ô¼ºÀ´Ëµ£¬»¹´æÔÚÒ»¸öÈíÀß——ÖªÆäÈ»¶ø²»ÖªÆäËùÒÔÈ»¡£¶øÒòÎªÇ°ÃæÏîÄ¿µÄѹÁ¦µÈ¸÷·½ÃæµÄÎÊÌ⣬ÎÒһֱûÓÐʱ¼ä¶Ô´Ë×÷²¹¾ÈµÄ´ëÊ©¡£
¡¡¡¡ÏÖÔÚÖÕÓÚ¾ö¶¨ÒªÀëÖ°ÁË£¬ÎÒÓÖÔٴγÉΪ×Ô¼ºÊ±¼äµÄÕæÕýÖ÷ÈË¡£Ò»Ö±Ïë×ö¶øÃ»·¨×öµÄʶ¼ÒªÔÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ