代码举例:
TextArea ta_log = new JTextArea(10,10)
ta_log.setLineWrap(true)
ta_log.setWrapStyleWord(true)
JScrollPane p_log = new JScrollPane(ta_log)
ta_log.append(“我是追加的内容”)
ta_log.append("\r\n")
使用jquery
$("Your Button").click(function(){$("target dom node").hmtl("<textarea cols=5 rows=5></textarea>")
})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)