jQuery 插件 ajaxForm plugins

Code Example:

index.html

 
 
     
     
     
 


Name: Comment:

comment.php

echo json_encode(array('s' => 1, 'data' => $_POST));

JSON.stringfy(value[, replacer[, space]])
JSON.stringfy() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified.

JSON.parse(text[, reviver])
*The JSON.parse() method parse a JSON string, constructing the JavaScript value or object described by the string. An optional reviver function can be provided to perform a tranformation on the resulting object before it is returned. *

你可能感兴趣的:(jQuery 插件 ajaxForm plugins)