/*** dare movie object.
* @constructor
*///宣告建構函式 建構函式初始化變數
dare.movie = function() ;
//----類dare.movie全域性屬性變數-----//
this.selectimages = ;
this.unselectimages = ;
this.allselected = false; //全選狀態,按下後變為true ,在按為false
this.hasgetchspell = false; //獲取拼音的狀態,第一次查詢後獲取
};dare.movie.prototype = new dare.util(); //繼承父類 dare.util是系統架構工具類
dare.movie.prototype.constructor = dare.movie; //引用建構函式
/*** @function movieinit
* @author
* @param null
* @return null
*/dare.movie.prototype.movieinit = function() ;
dare.movie.prototype.sort = function()
this.datasource = this.tempdatasource;
this.hasgetchspell = true;
}break;
case 'sorttype':
sortname = 'type';
break;
case 'sortsize':
sortname = 'size';
break;
case 'sortdate':
sortname = 'date';
break;
default:
sortname = 'date';
break;
}dareutil.sortby(this.datasource, sortname, this.sortdirection);
this.moviedatabind();
}dare.movie.prototype.loading = function() ;
dare.movie.prototype.closeloading = function() ;
/*** @function moviedatabind
* @author
* @return this.$('maincontent').innerhtml
*/dare.movie.prototype.moviedatabind = function() ';
item += '' + movieobj + '
' +'' + subname + '
' +'' + this.secondstommss(this.datasource[j]['time']) + '''
';i++;
this.$('movies').innerhtml = item;
if (this.$('item0'))
this.bookmoviebind();
this.closeloading();
};/**
* @function moviedetail
* @author
* @return this.$('detail').innerhtml
*/dare.movie.prototype.moviedetail = function(id)
if (parseint(foucusid) <= 7 && this.pageevent == false)
};/**
* @function listdownfocus
* @author
* @param null
* @return null
*/dare.movie.prototype.listdownfocus = function(i)
};/**
* @function listupfocus
* @author
* @param null
* @return null
*/dare.movie.prototype.listupfocus = function(i) ;
/*** @function keydownhandler
* @author
* @param null
* @return null
*/dare.movie.prototype.keydownhandler = function()
if (sortlist.style.display != "none")
}this.pageevent = false;
var foucusid = this.currentfocus.substr(4, 1);
if ('7' == foucusid)
if (parseint(foucusid) < 7 && this.pageevent == false)
};/**
* @function keyenterhandler
* @author
* @param null
* @return null
*/dare.movie.prototype.keyenterhandler = function()
if (this.orderby != this.currentfocus && (this.currentfocus == 'sortdate' || this.currentfocus == 'sortname' || this.currentfocus == 'sorttype' || this.currentfocus == 'sortsize'))
else }};
/*** @function keypageuphandler
* @author
* @param null
* @return null
*/dare.movie.prototype.keypageuphandler = function() ;
/*** @function keypagedownhandler
* @author
* @param null
* @return null
*/dare.movie.prototype.keypagedownhandler = function() ;
/*** @function selectmovie 選擇
* @author
* @param movie type
* @return null
*/dare.movie.prototype.selectmovie = function(movie, type)
}break;
default:
break;}};
/*** @function bookmoviebind
* @author
* @return null
*/dare.movie.prototype.bookmoviebind = function()
new dare.business.command().setglobalvar('moviebooklist', '');
}var i = 0;
for (var j = start; j < end; j++)
}i++;}};
/*** @function styleint
* @author
* @param null
* @return null
*/dare.movie.prototype.styleint = function() ;
/*** @function movieseacher 查詢
* @author
* @param null
* @return null
*/dare.movie.prototype.movieseacher = function()
this.datasource = this.tempdatasource;
this.hasgetchspell = true;
}var keyword = this.$('searchvalue').value;
var resultdata = ; //交換陣列
var i = 0;
for (var key in this.tempdatasource)
}this.datasource = resultdata;
this.recordcount = this.datasource.length;
this.pagetotal = this.recordcount % this.pagesize == 0 ? this.recordcount / this.pagesize : parseint(this.recordcount / this.pagesize + 1);
this.moviedatabind();
};var daremovie = new dare.movie();
document.onkeypress = function(event) ;
網際網路MySQL開發規範
一 基礎規範 1 使用innodb儲存引擎 2 表字符集使用utf8 3 所有表都需要新增注釋 4 單錶資料量建議控制在5000w以內 5 不在資料庫中儲存圖 檔案等大資料 7 禁 從測試 開發環境直連資料庫 二 命名規範 1 庫名錶名欄位名必須有固定的命名長度,12個字元以內 2 庫名 表名 欄位...
網際網路開發 Git筆記
git客戶端,相關工具 客戶端工具 說明git 2.10.1 64 bit.exe 可以使用git命令,操作git tortoisegit 2.3.0.0 64bit.msi 視覺化視窗,操作git egit外掛程式 給myeclipse eclipse等開發工具提供的外掛程式,安裝後可以在開發工具...
工業網際網路後台開發
jsonformat pattern yyyy mm dd hh mm ss timezone gmt 8 datetimeformat pattern yyyy mm dd hh mm ss private date time jsonformat 預設是標準時區的時間,多出現少8小時的情況 使用...