File:news-details.htm
Method:map.get(key,default)
table??get
类型不正确
xmls/news.xmls
...y);
}
$ajax exepro2(){
@query=$query(catalog,product);
@query[ParentId]=$post(pid);
@table=@query.table(*,['ParentId={*ParentId}'],['Grade desc']);
$write(@table.toJson());
}
$ajax exepro3(){
@query=$query(product,product);
@query[CatalogId]=$post(cid);
@table=@query.table(*,['CatalogId={*CatalogId}'],['Grade desc']);
$write(@table.toJson());
}
$sub exenews2(){
@query=$query(content,content);
@query[ContentId]=$argv(0);
@table=@query.map(*,['ContentId={*ContentId}']);
@dates=@table[CreateDate];
@date=$datetime(@dates);
@year=@date.year();
@month=@date.month();
@day=@date.day();
$return($empty);
}
$sub exenews2s(){
@query=$query(product,product);
@query[ProductId]=$argv(0);
@table=@query.map(*,['ProductId={*ProductId}']);
@dates=@table[CreateDate];
@date=$datetime(@dates);
@year=@date.year();
@month=@date.month();
@day=@date.day();
$return($empty);
}
$sub fenyewisdom(){
@query=$query(content,content);
@id=$argv(0);
@cid=@query.sca...