# 句柄切换 this.ifHandle(url)
通过引入方法,判断返回值实现判断不同句柄切换。
| 参数名 | 类型 | 必填 | 说明|
| --- | --- |--- | --- |
| url| string| 是 | 当前网页地址(支持模糊判断) |
返回值为 true ,false。
### 示例
```
new Bigfoot({
data: {},
async mounted() {
// 句柄切换 url支持模糊处理 如实例 网站完整链接 http://127.0.0.1:8848/ajax.html?a=123
let myUrl = this.ifHandle('http://127.0.0.1:8848/')
console.log(myUrl)
}
})
```