阅读背景:

在JS中使用PHP if/else是不好的做法吗?

来源:互联网 

I'm building a custom template for WordPress and in a couple places I've used PHP if else statements like the following example within the JS in the footer. It works fine but I'm wondering if this is considered "bad practice" and if so what is a better way to handle it?I'm building a custom template for WordPress an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: