zd2000 project css files and js files
1.css 母版页样式文件 newui2.css 信息展示
所有与对象有关的数据模型全部在ashx文件中比如:
public class cedianfenbu : IHttpHandler
{
public void ProcessRequest()
{
....
}
public void read()
{
}
public void delete()
{
}
....
}
返回的json数据说明:
json = {
"status ":(0:失败,1:错误),
"data":[],
"msg":(错误信息)
}
前端请求规范:
$.getJSON(ajaxUrl,function(result){
if(result.status == 1){
// ....
if(result.data.length > 0){
var html = template('cedian', data);
// ...
}else{
//....
}
}else{
MasterPage.notion(result.msg,5);
}
});
前端模板(art-template):
<script id="xm" type="text/html">
{{each list as value}}
- {{value[1]}}
{{/each}}
</script>