当前位置:网站首页>JSON preliminary understanding
JSON preliminary understanding
2022-07-28 10:53:00 【Much less】
JSON Preliminary understanding
Full name :Javascript Object Notation
It's a text format for data exchange , stay 2001 Was proposed in , The purpose is to replace the heavy XML.
It is a transmission format supported by both front and back ends .
JSON It's an independent language , Essentially a string , Not object .
matters needing attention :
1. String must use double quotes , You can't use single quotes .
2. The last value cannot be followed by a comma .
3. Must be decimal , Cannot be hexadecimal .
4. The value of the original type is only 4 Kind of : character string , The number , Boor and null. Out of commission NaN,Infinity and undefined.
5.JSON You can't put it in the function
6.JSON In the process of data transmission, it must be String type .
JSON The transformation method of :
JSON.stringify( ) To JSON Format
JSON.parse( ) hold JSON Format to JS object
JSON How to write it :
{"name":" value "}
XML How to write it :
XML Customizable labels
<name> value </name>
边栏推荐
- Header library file
- Status Notice ¶
- 非关系型数据库MongoDB的特点及安装
- GKCoherentNoiseSource
- GKARC4RandomSource
- I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
- Yan reports an error: exception message: /bin/bash: line 0: fg: no job control
- Invalid ROM Table原因及解决办法
- ctf技能树----文件上传
- GKBillowNoiseSource
猜你喜欢
随机推荐
Product side data analysis thinking
Crm+ zero code: easily realize enterprise informatization
剑指 Offer 35. 复杂链表的复制
数组相关的知识点
哈希表的相关知识点
Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6
从零开始Blazor Server(2)--整合数据库
The future of generating confrontation networks in deepfake
GKBillowNoiseSource
Install GMP
GKRidgedNoiseSource
The 10th Landbridge cup embedded electronic provincial competition
andorid 开发
图片滑动特效
Judge whether the nixie tube is a common anode or a common cathode
Apb2 and apb1 in stm32
21. Merge two ordered linked lists
19. Delete the penultimate node of the linked list
8. Detailed explanation of yarn system architecture and principle
nodejs:检测并安装npm模块,如果已安装则跳过








