Jade 中的 "extends" 和 "include" 有什么区别?
What is the difference between "extends" and "include" in Jade?
通过这两个命令,我可以使用另一个文件中的代码。正如我所看到的,当我们使用 extends file.jade
时,我们可以使用 block
,在编译之前更改 file.jade
中的块。但这是唯一的区别吗?我是对的吗?
谢谢。
通过这两个命令,我可以使用另一个文件中的代码。正如我所看到的,当我们使用 extends file.jade
时,我们可以使用 block
,在编译之前更改 file.jade
中的块。但这是唯一的区别吗?我是对的吗?
谢谢。