版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/edisonbeok/article/details/48274455
js:
JS下面写的方法:
function jsFunc(){
window.alert("hello world");
}
ts:
TS下面对应的是:
然后还有一个引入的test.json
{
"name": "test",
"dependence": ["core"],
"source":"./",
"file_list": [
"test.js",
"test.d.ts"
]
}
"name": "test",
"dependence": ["core"],
"source":"./",
"file_list": [
"test.js",
"test.d.ts"
]
}
搞定。