h5 2
Showing
1 changed file
with
0 additions
and
1 deletions
| 1 | var u = navigator.userAgent; | 1 | var u = navigator.userAgent; |
| 2 | var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 | 2 | var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 |
| 3 | var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 | 3 | var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 |
| 4 | layer.open() | ||
| 5 | function AppClient(appObj, isAndroid) { | 4 | function AppClient(appObj, isAndroid) { |
| 6 | this.appObj = appObj; | 5 | this.appObj = appObj; |
| 7 | this.isAndroid = isAndroid; | 6 | this.isAndroid = isAndroid; | ... | ... |
-
Please register or sign in to post a comment