How to pass arguments to an included file?

前端 未结 9 1969
無奈伤痛
無奈伤痛 2020-12-14 05:53

I\'m trying to make the whole section its own include file. One drawback is the title and description and keyword will be the same; I can\'t figure

9条回答
  •  遥遥无期
    2020-12-14 06:37

    defining a variable as a pseudo-argument/workaround before an include() - as recommended by many - is a bad idea. it introduces a variable in the global scope. define a function in the included file instead to catch the arguments u want to pass.

提交回复
热议问题