Get: The value is less than 1 kb, so the efficiency is high and the security is low because it will produce cache (garbled code will be generated. The following code hasn't solved this problem yet)
XmlObj. open ("GET", "get_name.aspx? Labelname = "+ labelname, true );
XmlObj. send ('');
Post: a large number of values can be passed, which is highly secure because it does not produce cache (the following code can be passed to Chinese without garbled characters)
Code
Var postContent = encodeURIComponent (labelname );
XmlObj. open ("POST", "get_name.aspx? Labelname = "+ postContent, true );
XmlObj. setRequestHeader ("Content-Type", "application/x-www-form-urlencoded ");
// Xmlhttp. setRequestHeader ("Content-Type", "text/xml"); // If an xml file is sent
XmlObj. send (postContent );
Post is recommended. Record it to avoid forgetting it. If anyone knows how to solve the get garbled problem, please reply. Thank you! Hey...