Call functions from another “class” / file

前端 未结 3 1609
执笔经年
执笔经年 2021-02-05 18:03

Ok, I feel embarrassed that I wasn\'t able to figure this out on my own, but after a few wasted hours, I figured it would be easier to simply ask over here:

I have a bun

3条回答
  •  隐瞒了意图╮
    2021-02-05 18:41

    Files aren't classes. You can call any functions in any file from any other file. Think of your files as if they were just added together before running. If you want class-like scoping you can use the Libraries feature.

提交回复
热议问题