論壇裏面相關資料太少,這裏貼一下ide
庫須要在工程的lib目錄下,在ide裏面就是用戶庫目錄,好比spa
my_libcode
namespace my_lib{ import console class MyLibClass { ctor(...){ ..console.log("in ctor of mylibclass"); } my_lib_function=function(...){ ..console.log("in my_lib_function"); return "my_lib_function"; } } }
main文件blog
import my_lib import console test = my_lib.MyLibClass() info = test.my_lib_function() console.log(info) console.pause()