SetInterval function is not working with PHP File

前端 未结 2 1025
鱼传尺愫
鱼传尺愫 2021-01-27 12:27

I have index.html like this






        
相关标签:
2条回答
  • 2021-01-27 12:58

    It´s working for me, but you only can see the content one time, because .load function is replacing the old content, change

    $('#mydiv').load('xyz.php').fadeIn("slow");  
    

    with this

    $('#mydiv').append($('<div >').load('xyz.php'));
    
    0 讨论(0)
  • 2021-01-27 13:09

    I renamed index.html to index.php and called that by localhost/firstproject/index.php. That worked

    0 讨论(0)
提交回复
热议问题