判斷當前被嵌入的環境
ea55api_vue.environ()
## 使用前先引入文件
```
import ea55api_vue from 'ea55api_vue';
```
```
console.log(ea55api_vue.environ());
```
| 返回值 | 含義 |
| --- | --- |
| apicloud | apicloud APP端 |
| web | 普通h5端 |
| wx | 微信端 |
| wxxcx | 微信小程序端 |
| alp | 支付寶端 |
## 一把用法
```
ea55api_vue.ready(function(){
switch (ea55api_vue.environ()) {
case 'apicloud':
//但前在app環境
api.toast({
msg: '你已經用APP打開了當前頁面~~~~',
duration: 500,
location: 'bottom'
});
break;
default:
}
})
```