<form name="form1">
<input type="text" name="text1" disabled>
<input type="button" onclick="change(document.form1.text1)">
</form><script>
function change(canshu){
     canshu.disable=false;
}
</script>

解决方案 »

  1.   

    <form name="form1">
    <input type="text" name="text1" disabled>
    <input type="button" onclick="change(document.form1.text1)">
    </form><script>
    function change(canshu){
    alert(canshu)
         canshu.disabled=false;
    }
    </script>少写了一个D
      

  2.   

    当然可以,最常用的 this 不就是对象吗?
      

  3.   

    in the javascript,you can create a new object, and use a instance to clone the object ,and use it to do something.