js函数中写参数,ajax中写参数,示例如下:
function informationQuery(sign){//预警详情条件查询 $.get("/detail/informationQuery.do",{cityName:cityName,warningType:warningType, company:company,institution:institution,chaseTime:chaseTime,sign:sign}, function (result) { }) }
如果调函数是 informationQuery() ,那么前台打印sign会是undefined,后台接参数会是null
如果前台传的是null,后台接参数会是" "