jQuery真伪数组转换

// 真数组转伪数组
[].push.apply(obj,arr);
// 伪数组转真数组
[].slice.call(obj);

 

posted @ 2021-06-06 23:39  胸怀丶若谷  阅读(48)  评论(0)    收藏  举报