s_array = split(a3,";") for i = 0 to ubound(s_array) for j=i+1 to ubound(s_array) if getSPName(s_array(i)) = getSPName(s_array(j)) then Nums = Nums + Cint(getSPNum(s_array(j))) end if next next
s_array = split(a3,";") for i = 0 to ubound(s_array) for j=i+1 to ubound(s_array) if getSPName(s_array(i)) = getSPName(s_array(j)) then Nums = Nums + Cint(getSPNum(s_array(j))) end if next
s_array = split(a3,";") for i = 0 to ubound(s_array) for j=i+1 to ubound(s_array) if getSPName(s_array(i)) = getSPName(s_array(j)) then Nums = Nums + Cint(getSPNum(s_array(j))) end if
function IsInID(j) dim x IsInID = false for each x in ID if x = j then IsInID = true exit function End if Next end function
主要函数为
function mainhb(s) s_array = split(s,";") for i = 0 to ubound(s_array) if not IsInID(i) then Nums = getSPNum(s_array(i)) for j=i+1 to ubound(s_array) if getSPName(s_array(i)) = getSPName(s_array(j)) then Nums = Nums + Cint(getSPNum(s_array(j))) redim Preserve ID(q) ID(q) = j q = q + 1 end if next
redim Preserve result(p) result(p) = getSPName(s_array(i)) & "=" & Nums p = p + 1 end if next
for each x in result mainhb=mainhb&x&";" next end function
整体函数为
<% dim result() dim ID() dim p , q , Nums
p=0 q= 0 Nums = 0
redim Preserve ID(q) ID(q) = ""
s = "sp4=33;sp2=20;sp1=34;sp3=2;sp2=3;sp4=4;" s = left(s,len(s)-1) response.write mainhb(s)
function mainhb(s) s_array = split(s,";") for i = 0 to ubound(s_array) if not IsInID(i) then Nums = getSPNum(s_array(i)) for j=i+1 to ubound(s_array) if getSPName(s_array(i)) = getSPName(s_array(j)) then Nums = Nums + Cint(getSPNum(s_array(j))) redim Preserve ID(q) ID(q) = j q = q + 1 end if next
redim Preserve result(p) result(p) = getSPName(s_array(i)) & "=" & Nums p = p + 1 end if 'Nums = 0 next
for each x in result mainhb=mainhb&x&";" next end function
Function getSPName(sp) getSPName = split(sp,"=")(0) End Function
Function getSPNum(sp) getSPNum = split(sp,"=")(1) end function
function IsInID(j) dim x IsInID = false for each x in ID if x = j then IsInID = true exit function End if Next end function %>
荣耀猎人回归!七大亮点看懂不只是轻薄本,更是游戏本的MagicBook Pro 16. 人们对于笔记本电脑有一个固有印象:要么轻薄但性能一般,要么性能强劲但笨重臃肿。然而,今年荣耀新推出的MagicBook Pro 16刷新了人们的认知——发布会上,荣耀宣布猎人游戏本正式回归,称其继承了荣耀 HUNTER 基因,并自信地为其打出“轻薄本,更是游戏本”的口号。 众所周知,寻求轻薄本的用户普遍更看重便携性、外观造型、静谧性和打字办公等用机体验,而寻求游戏本的用户则普遍更看重硬件配置、性能释放等硬核指标。把两个看似难以相干的产品融合到一起,我们不禁对它产生了强烈的好奇:作为代表荣耀猎人游戏本的跨界新物种,它究竟做了哪些平衡以兼顾不同人群的各类需求呢?