js中使用el表达式,在null判断时若只有'',其结果如图 x

x

若只有"",其结果如图

x

所以最好使用 var platAcceptJSON = ${platAcceptJSON == null ? ‘""’ : platAcceptJSON}; 或者 var platAcceptJSON = ${platAcceptJSON == null ? “''” : platAcceptJSON};