return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>concat
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

concat

运维笔记admin5浏览0评论

concat

concat

将传入的数组或非数组值与原数组合并

思想:可以用于数组合并,并且不改变原数组,返回一个新数组,

push效果的另类用法

var a = [1,2,3];
document.write(a.concat(4,5));
var b= [4,5];
document.write("<br>");
document.write(a.concat(b));

输出结果:

发布评论

评论列表(0)

  1. 暂无评论