本节解释如何编写头文件以及如何在vue脚本中包含它。
This section explains how to compose a header file and how to include it in Vue script.
在编写头文件之前,我们需要引入一些额外的预处理器设施。预处理器允许我们自定义变量。
Before we write our own header, we need to introduce some additional preprocessor facilities. The preprocessor lets us define our own variables.
可以在头文件中编写原型。
应用推荐