Inserting php into js file

前端 未结 5 1008
遇见更好的自我
遇见更好的自我 2021-01-15 01:40

I have a loading gif for the gallery on my website. In my js file I have this code to show the loader:

image: $(\"\"),         


        
5条回答
  •  爱一瞬间的悲伤
    2021-01-15 02:06

    I am not totally sure what you are trying to do. But if that JS isn't working, why not including a php file, or just writing some php in the header, that includes the JS inside it in 'echo()'. I.e:

     echo('?>

    Correct me if I am misunderstanding your intent.

提交回复
热议问题