get往服务端发送数据时,把数据写到url中,明文发送,可以从地址栏中直接看到,不安全
post往服务端发送数据是,把数据写到header后边,不写在url中,安全性更高
js原生,jquery, ajax...数据
jquery:.get 或则.post发送,参数是(url, json数据{}, 收到应答时的回调函数) 回调函数(服务端应答数据data, 状态码, XMLHttpRequest异步请求对象)
ajax...: $.ajax() 参数是json对象{url:, type:post/get, data:{}, 回调函数}
回调函数(服务端应答数据data, 状态码, XMLHttpRequest异步请求对象