El 2019-08-13 约 79 字 预计阅读 1 分钟 次阅读 文章目录 js中使用el表达式,在null判断时若只有'',其结果如图 若只有"",其结果如图 所以最好使用 var platAcceptJSON = ${platAcceptJSON == null ? ‘""’ : platAcceptJSON}; 或者 var platAcceptJSON = ${platAcceptJSON == null ? “''” : platAcceptJSON}; 文章作者 cr6588 上次更新 2022-05-25 (3a6453f)