# 添加JS this.importTheJSSync(url)
将CSS推加载到页面。
| 参数名 | 类型 | 必填 | 说明|
| --- | --- |--- | --- |
| url| string| 是 | JS文件链接 |
### 示例
```
<div class="he">我是节点0</div>
<script type="text/javascript">
new Bigfoot({
data: {},
async mounted() {
let myRe = await this.importTheJSSync('https://cdn.bootcdn.net/ajax/libs/axios/0.24.0/axios.min.js')
if(myRe){
console.log('success')
}
},
})
</script>
```
# 添加JS this.importTheJS(object)
将CSS推加载到页面。
| 参数名 | 类型 | 必填 | 说明|
| --- | --- |--- | --- |
| url| string| 是 | JS文件链接 |
| success| function| 是 | 返回参数true表示成功 |
### 示例
```
<div class="he">我是节点0</div>
<script type="text/javascript">
new Bigfoot({
data: {},
async mounted() {
let myRe = await this.importTheJS({
url : 'https://cdn.bootcdn.net/ajax/libs/axios/0.24.0/axios.min.js',
success : (res) => {
console.log(res)
}
})
})
</script>
```