jquery $.GET parameters passing in the url

青春壹個敷衍的年華 提交于 2019-11-30 20:06:58

Yes that is possible but you can also do it this way.

$.get(
   "mypage.php", 
   { version: "5", language: "php" }, // put your parameters here
   function(responseText){
      console.log(responseText);
   },
   'html'
);
Gate
$.get(

  url: url,    //your url eg. mypage.php

  data: data,   // Parameter you want to pass eg. {version:"5" , language : "php"}

  success: callback // function after success

);

follow the below link

http://api.jquery.com/jQuery.getJSON/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!