实现一个函数clone,可以对JavaScript中的5种主要的数据类型进行值复制。

数据类型:(包括Number、String、Object、Array、Boolean)
图片描述

猜你喜欢

转载自www.cnblogs.com/homehtml/p/12904865.html