jquery equivalent for JSON.stringify

Possible Duplicate:
Serializing to JSON in jQuery

I'm using jquery as a library in my javascript code. But sometimes I have to JSON.stringify() .

When I want to keep my code IE compatible I use
$("head").append('<script type="text/javascript" src="../Includes/json2.js"></script>');
to get my JSON.stringify() to work. Isn't there a equivalent in jquery for JSON.stringify() ?


There is no such functionality in jQuery. Use JSON.stringify or alternatively any jQuery plugin with similar functionality (eg jquery-json).

链接地址: http://www.djcxy.com/p/8080.html

上一篇: 将数组转换为Json

下一篇: 相当于JSON.stringify的jquery