6.在src下創(chuàng)建一個index.ts文件, 同時會在out文件夾下生成index.js文件7.運行index.ts的代碼,需要修改 package.json 文件中的 "scripts"修改前: