ttyu平台进页面获取阅读量

SQL语句

function mydata(Actions,sql,where,tablename){  //接口,SQL语句,ID,表名
    tdatamydata = { type: 'web', isJsonp: false, uuid: null, compId: null, userId: null, action: Actions, tableName: tablename, where: where, fieldName: null, sql: sql, datas: null, tableDatas: null, paras: null,
        GoPage: { index: null, rows: null }, Tree: { id: null, pId: null, name: null, other: null }
    };
}
var sql = "select readcount from doc  where ID="+idobj;  // 根据listid查找readcount表
mydata("addcount",sql,idobj,"doc"); 
ttyu.server.doServiceJsonp(serverJson.serverUrl,tdatamydata,"",function(data){});
原文地址:https://www.cnblogs.com/dxt510/p/7824832.html