mpmenu0=new mMenu('深圳'','/','self','','','','');mpmenuchild0=new mMenuchild(南山','/','self','','','','');mpmenu0.additem(mpmenuchild0);mpmenuchild0=new mMenuchild(科技园','/','self','','','','');mpmenuchild0.additem(mpmenuchild0);mpmenuchild1=new mMenuchild(福田','/','self','','','','');mpmenu0.additem(mpmenuchild1);mpmenuchild0=new mMenuchild(塞格','/','self','','','','');mpmenuchild1.additem(mpmenuchild0);mpmenu1=new mMenu('广州'','/','self','','','','');mpmenuchild0=new mMenuchild(广州火车站','/','self','','','','');mpmenu1.additem(mpmenuchild0);
这段代码是啥意思?
没看懂啊,就看了个按钮以及子按钮什么的。
JScript code:
//深圳菜单
mpmenu0=new mMenu('深圳','/','self','','','',''); //新建“深圳”menu
mpmenuchild0=new mMenuchild('南山','/','self','','','',''); //新建“南山”节点
mpmenu0.additem(mpmenuchild0); //将“南山”子节点添加到“深圳”menu中
//下面两行似乎有问题
mpmenuchild0=new mMenuchild('科技园','/','self','','','','');//新建“科技园”节点
mpmenuchild0.additem(mpmenuchild0);//“科技园”节点自己加自己??
mpmenuchild1=new mMenuchild('福田','/','self','','','','');//新建“福田”节点
mpmenu0.additem(mpmenuchild1);//将“福田”节点添加到“深圳”menu中
mpmenuchild0=new mMenuchild('塞格','/','self','','','','');//新建“塞格”子节点
mpmenuchild1.additem(mpmenuchild0);//将“塞格”子节点添加到“福田”节点下
//广州菜单
三个数x,y,z 比大小..
var x,y,z,t;
if (x>y)
{t=x;x=y;y=t;} //交换x,y的值
if(x>z)
{t=z;z=x;x=t;}//交换x,z的值
if(y>z)
{t=y;y=z;z=t;}//交换z,y的值
这是 ......
我在head中写了下面得代码,想劫持alert函数,可是不知道为什么,将这个html打开时,弹出两个框都是内容都是ab,我已经劫持了这个函数,为什么没有效呢?
我在下面定义个button在onclick事件中添加代码alert(“ab” ......