What are the variables in the {dede: php} tag? {Dede: php} & nbsp; $ cf = 'abc'; {/dede: php} & nbsp; {dede: php} // $ cf = 'abc '; & nbsp; echo '& lt; li & gt ;'. $ cf. '& lt;/li & gt;'; {dede: php} is the variable in the two fields different?
{Dede: php}
$ Cf = 'abc ';
{/Dede: php}
{Dede: php}
// $ Cf = 'abc ';
Echo'
'. $ Cf .'';
{/Dede: php}
As shown above, if $ cf is defined in another {dede: php} tag segment, the value of $ cf cannot be reached in the tag segment below. Are there two tags?
Not generic?
My goal is:
{Dede: php} if (condition 1)
{
{/Dede: php}
Here is the {dede: list} tag
{Dede: php}
}
Else
{
{/Dede: php}
Here is another {dede: list} tag
{Dede: php}
}
{/Dede: php}
That is, other labels are dynamically loaded based on judgment.
------ Solution --------------------
Global?
------ Solution --------------------
It can only be passed through javascript.
JScript code