var textvalue=this.comp("textarea1").val();
//textvalue=textvalue.replace("\n","<br>");
alert(textvalue);
textvalue=textvalue.replace(/\n/ig,"<br>");
alert(textvalue);
this.comp("textarea1").val=textvalue;
alert(textvalue);
再请教。。这个代码,第一次执行是正常的。第二次执行就报错
错误消息是 Property 'val' of object [object Object] is not a function
测试了一下,应该是第一句