1 頁 (共 1 頁)

Record 的速度很慢

發表於 : 2009-09-10 23:13:07
yehlu
1.用了AJAX 會載入較慢

2.裡面有數百個項次的List BOX

解決方案
把項次加上條件,新增時全部空的,或只列出預設的資料
如下修改程式碼

function clsRecordcust($RelativePath, & $Parent)


if($_GET["cust_id"]=="" or !isset($_GET["cust_id"])){
$this->local_id->DataSource->wp->Criterion[1] = "( city_id = 0 )";
}else{
$this->local_id->DataSource->wp->Criterion[1] = "( city_id = ".$_GET["city_id"]." )";
}