组保留的标签 余下为需要删除的标签
unset($oldtag[$key]);
}
}
}
if (!empty($oldtag)) {
$tagids = array();
foreach ($oldtag as $tagid => $tagname) {
$tagids[] = $tagid;
}
well_oldtag_delete($tagids, $tid);
}
$r = well_tag_process($tid, $fid, $create_tag, $tagarr);
return $r;
}
// 删除标签和绑定的主题
function well_oldtag_delete($tagids, $tid)
{
$pagesize = count($tagids);
$arrlist = well_tag_find_by_tagids($tagids, 1, $pagesize);
$delete_tagids = array(); // 删除
$tagids = array();
$n = 0;
foreach ($arrlist as $val) {
++$n;
if (1 == $val['count']) {
// 只有一个主题
$delete_tagids[] = $val['tagid'];
} else {
$tagids[] = $val['tagid'];
}
}
!empty($delete_tagids) and well_tag_delete($delete_tagids);
$arlist = well_tag_thread_find_by_tid($tid, 1, $n);
if ($arlist) {
$ids = array();
foreach ($arlist as $val) $ids[] = $val['id'];
well_tag_thread_delete($ids);
}
!empty($tagids) and well_tag_update($tagids, array('count-' => 1));
}
// 标签数据处理 $arr=新提交的数组 $tagarr=保留的旧标签
function well_tag_process($tid, $fid, $new_tags = array(), $tagarr = array())
{
if (empty($tid)) return '';
// 新标签处理入库
if ($new_tags) {
$threadarr = array();
$tagids = array();
$i = 0;
$size = 5;
$n = count($tagarr);
$n = $n > $size ? $size : $size - $n;
foreach ($new_tags as $name) {
++$i;
$name = trim($name);
$name = stripslashes($name);
$name = strip_tags($name);
$name = str_replace(array(' ', '#', "@", "$", "%", "^", '&', '·', '<', '>', ';', '`', '~', '!', '¥', '……', ';', '?', '?', '-', '—', '_', '=', '+', '.', '{', '}', '|', ':', ':', '、', '/', '。', '[', ']', '【', '】', '‘', ' ', ' ', ' ', ' ', ' '), '', $name);
$name = htmlspecialchars($name, ENT_QUOTES);
if ($name && $i <= $n) {
// 查询标签
$read = well_tag_read_name($name);
if ($read) {
// 存在 count+1
$tagids[] = $read['tagid'];
} else {
// 入库
$arr = array('name' => $name, 'count' => 1);
$tagid = well_tag_create($arr);
FALSE === $tagid and message(-1, lang('create_failed'));
$read = array('tagid' => $tagid, 'name' => $name);
}
$tag_thread = array('tagid' => $read['tagid'], 'tid' => $tid);
$threadarr[] = $tag_thread;
$tagarr[$read['tagid']] = $read['name'];
}
}
!empty($threadarr) and tag_thread_big_insert($threadarr);
!empty($tagids) and well_tag_update($tagids, array('count+' => 1));
}
$json = empty($tagarr) ? '' : xn_json_encode($tagarr);
return $json;
}
?>
苹果笔记本系统好用吗编程频道|福州电脑网
苹果笔记本系统好用吗
系统教程560
更新时间:2026-04-06 07:01:11 2024年1月6日发(作者:)
苹果笔记本系统好用吗
MacOS系统
优势:
MacOS系统是Mac上原生的系统,是专门为Mac电脑量身定制的系统,能够充分发挥电脑各个硬件的性能与优势。就拿Mac电脑上的触控板来说,与苹果系统的完全结合,可以支持多点触摸,实现不同的功能。相信很多朋友都有这样的体验,如果是Mac笔记本的话,在苹果系统下可以使用很久,而要是换了Window系统的话,那简直就是一场噩梦。另外就是苹果电脑的系统外观上,个人认为要比Window要精美,好看得多。不论是系统的画面,还是动画,都很人性化。
缺点:
如果是一个使用Window系统习惯了的用户,突然转变使用了MacOS系统的话,可能在刚开始会觉得不适应。因为养成已久的习惯,要去适应一个新的东西,是需要一定的时间。
Window系统
优点:
相信购买了Mac电脑,要安装Window的朋友,平时都是习惯了使用Window系统。所以才会有这个想法。另外Window下的应用软件比较全,比如一些大型好玩的游戏,在国内就只有Window版的。可能这也是一部人选择安装Window系统的原因。其它的还有就是一些办公,设计类的软件,也有这方面的原因。
缺点:
Mac电脑安装了Window系统的话,有很多功能强大的性能就发挥不出来了,比如多点触控。
本文发布于:2024-01-06,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:系统电脑苹果使用笔记本
发布评论