JavaScript 保存数据时判断undefined

(typeof (service_document) == "undefined" ? "" : service_document)
原文地址:https://www.cnblogs.com/dreamsails/p/12660799.html