最赞回答 / 墨染风雅
因为getElementById()获取的是一个object对象,而不是一个单纯的string,你需要输出其中的数据将document.write()中的mychar改为mychar.innerHTML
2018-09-10
最新回答 / 逐梦者在路上
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" Content="text/html; charset=utf-8" /><title>javascript</title><style type="text/css">body{font-size:12px;}#txt{ height:400px; width:600px; border:#3...
2018-09-05