6、toRaw 有些時(shí)候我們不希望數(shù)據(jù)進(jìn)行響應(yīng)式實(shí)時(shí)更新,可以通過 toRaw 獲取 ref 或 reactive 引用的原始數(shù)據(jù),通過修改原始數(shù)據(jù),不會(huì)造成頁面的更新,只有通過修改 ref 和 reactive 包裝后的數(shù)據(jù)時(shí)才發(fā)生界面響應(yīng)式變化 1 2 3 4 5 6 7 8 9 10 11
www.dbjr.com.cn/javascript/306418b...htm 2025-6-9