原理:调用toJSON()方法
toJSON()
JSON.stringify(); //如果参数为函数,返回值为undefined
$ 的用法相当于 document.querySelector,$$ 相当于 document.querySelectorAll。
$
document.querySelector
$$
document.querySelectorAll
不同浏览器功能可能有所不同
← 继承