How to write the php code in js file

前端 未结 4 470
猫巷女王i
猫巷女王i 2021-01-03 07:23

Is my program i divide the pages as a div in the first div i added this code

  

        
4条回答
  •  被撕碎了的回忆
    2021-01-03 07:29

    Save the file named abc.js to abc.js.php, hence server will come to know that it contains some php question, so that it will process first php content then replace the result in .js file and send to browser, By doing this the .js file will contain dynamic contents..

提交回复
热议问题