how to execute php code within javascript

前端 未结 8 1821
無奈伤痛
無奈伤痛 2020-11-30 03:47



        
8条回答
  •  执念已碎
    2020-11-30 03:53

    put your php into a hidden div and than call it with javascript

    php part

    
    

    javascript part

    var myfield = document.getElementById("mybox");
    myfield.visibility = 'visible';
    

    now, you can do anything with myfield...

提交回复
热议问题