阅读背景:

在Javascript文件中插入PHP变量值

来源:互联网 

I have a JavaScript file which has a hard coded BASEURL variable, this value is then used by other functions in the file. I would like for this url value to be set dynamically so that I don't need to manually change it for different installs. Is it possible to insert a PHP variable value into a JavaScript file?I have a JavaScript file which has a hard coded




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

分享到: