<SCRIPT LANGUAGE="JavaScript">
<!--
/*
type color ke type2 <3000 <5000 <10000 <20000 >20000
Print 1+1 <250 auto 100 100 150 250 1%
Print 1+1 <250 noauto 200 200 250 300 1.50%
Print 1+1 >250 auto 150 200 200 300 1.50%
Print 1+1 >250 noauto 250 250 400 400 1.50%. . . . . . . . .
. . . . . . . . .
. . . . . . . . .binding '' '' a 100 100 100 150 0.75%
binding '' '' b 200 200 250 300 1.50%
binding '' '' c 200 250 300 350 1.50%
*/
function MzRecord(type, color, ke, type2, k3, k5, k10, k20, kn)
{
this.type = type;
this.color = color;
this.ke = ke;
this.type2 = type2;
this.k3 = k3;
this.k5 = k5;
this.k10 = k10;
this.k20 = k20;
this.kn = kn;
}
var a = new Array();
a[a.length] = new MzRecord("Print","1+1","<250","auto","100","100","150","250","1%");
a[a.length] = new MzRecord("Print","1+1","<250","noauto","200","200","250","350","1.50%");
a[a.length] = new MzRecord("Print","1+1",">250","auto","150","200","250","300","1.50%");//例如要搜索 type2="auto" 的数据
for(var i=0; i<a.length; i++)
{
if(a[i].type2=="auto") alert(a[i].k3);
}
//-->
</SCRIPT>
<!--
/*
type color ke type2 <3000 <5000 <10000 <20000 >20000
Print 1+1 <250 auto 100 100 150 250 1%
Print 1+1 <250 noauto 200 200 250 300 1.50%
Print 1+1 >250 auto 150 200 200 300 1.50%
Print 1+1 >250 noauto 250 250 400 400 1.50%. . . . . . . . .
. . . . . . . . .
. . . . . . . . .binding '' '' a 100 100 100 150 0.75%
binding '' '' b 200 200 250 300 1.50%
binding '' '' c 200 250 300 350 1.50%
*/
function MzRecord(type, color, ke, type2, k3, k5, k10, k20, kn)
{
this.type = type;
this.color = color;
this.ke = ke;
this.type2 = type2;
this.k3 = k3;
this.k5 = k5;
this.k10 = k10;
this.k20 = k20;
this.kn = kn;
}
var a = new Array();
a[a.length] = new MzRecord("Print","1+1","<250","auto","100","100","150","250","1%");
a[a.length] = new MzRecord("Print","1+1","<250","noauto","200","200","250","350","1.50%");
a[a.length] = new MzRecord("Print","1+1",">250","auto","150","200","250","300","1.50%");//例如要搜索 type2="auto" 的数据
for(var i=0; i<a.length; i++)
{
if(a[i].type2=="auto") alert(a[i].k3);
}
//-->
</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货