【发布时间】:2018-06-12 13:13:52
【问题描述】:
我遇到一个错误说
The left-hand side of an assignment expression must be a variable or a property access.
使用这组代码,我遇到了这个错误,请任何人解决这个问题。
this.isDeviceType = navigator.userAgent.match(/iPad/i)!= null ? === "iPad" ?
"iOS" : navigator.userAgent.match(/iPhone/i)!= null ?=== "iPhone" ?
"iOS" : navigator.userAgent.match(/Android/i)!= null ? ===
"Android" ?
"Android" : navigator.userAgent.match(/BlackBerry/i)!= null ?=== "BlackBerry" ?
"BlackBerry" : "Browser"
【问题讨论】:
标签: angular