文档
测试

daping_baiban

POST
/gy_daping/getAll.action

接口描述

请求后端调取白板公告信息

请求参数

参数名
类型
描述
必填
page
数字
页码
必填
rows
数字
每页记录
必填
gy_daping.facno
数字
工厂分号
必填
gy_daping.menu_id
数字
菜单ID号
必填

响应参数

参数名
类型
描述
必填
dataType: "json"
JSON
返回信息格式
必填

说明 / 示例

$.ajax({ type: "POST", url: url, async: false, cache: false, dataType: "json", success: function (data) { //console.info(data); if (data.rows.length > 0) { paginItem = data.rows[0].gonggao txt =data.rows[0].remark; var n=paginItem.split(","); for(i=0;i<n.length;i++){ //imgarr.push(n[i]); var temp = n[i]; temp=temp.replace(/^\s+|\s+$/g,"");//js去掉两头空格 imgarr.push('http://img.happy7686.cn/'+temp); // alert('http://img.happy7686.cn/'+temp); } $("#text_title").html(data.rows[0].title_jsp); //文字内容 $("#text_contant").html(txt); //图片内容 imglist(imgarr); } } });