Older browsers without the support for the JavaScript function JSON.parse() can use the eval() function to convert a JSON text into a JavaScript object:
eval()= JSON.pare() : dùng để chuyển đổi từ dạng chuỗi JSON thành JavaScript.
JSON.stringify
JSON.stringify(str): dùng để chuyển thành chuỗi JSON (Bao gồm chuỗi String, và Object)
Không có nhận xét nào:
Đăng nhận xét