jquery .load() page then parse html

前端 未结 3 902
长发绾君心
长发绾君心 2020-12-30 05:15

I have used the line below in my app. But now I need to parse the html loaded before I show it. Whats the best way to get certain html elements.

$(\"#div\").         


        
3条回答
  •  别那么骄傲
    2020-12-30 05:40

    Instead of calling .load(), you should call $.get to perform an AJAX request and manually process the response.

提交回复
热议问题