How can I use jQuery “load” to perform a GET request with extra parameters?

前端 未结 5 881
慢半拍i
慢半拍i 2020-12-13 19:04

I\'m reading the jQuery load documentation and it mentions that I can use load to perform a GET request by passing in extra parameters as a string. My current code with my

5条回答
  •  抹茶落季
    2020-12-13 19:29

    can you not just do:

    $("#output").load(
        "server_output.html?year=2009&country='Canada'"
    );
    

提交回复
热议问题