正常运行的结果:
aobj.href="abcdefghi";
aobj.target="_blank";
aobj.style.backgroundColor='yellow';
aobj.style.float= "left";
aobj.style.overflow="hidden";
aobj.appendChild(img);
用了with之后不能运行的结果:
wiht(aobj)
{
href="abcdefghi";
target="_blank";
style.backgroundColor='yellow';
style.float= "left";
style.overflow="hidden";
appendChild(img);
}
哪里有问题,还望指教!
直接帮我改了我再摸索吧,谢谢了!
wiht拼写错误