请问如何写JS遍历填报的某列数据,如果存在c则触发消息推送? 或者参数设置公式里能获取已填写的单元格列。 var _obj = $(".x-table tr"); var _length = _obj.length; for(var i = 3; i < _length; i++) { var _td = _obj.eq(i).find("td"); for(var j = 0;j < _td.length; j++) { var _val = _td.eq(j).text(); var _tval = $.trim(_val); if(_tval=="C"){ var myarray={"msgtype": "news","news": {"articles" : [{"title" : title,"description" : cont,"url" :url,"picurl":"https://www.xcx.com/webroot/upload/55.jpg"}]}} var json_myarray = JSON.stringify(myarray) $.ajax({ type: "POST", url: url2, data:json_myarray, header:{'Content-Type':'application/json'} }); } } } location.reload(); |