本文介绍了textarea如何通过返回显示价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 你好, <%@ Language = VBScript%> <% Response.Write"< FORM name = form1>" 设置shipment_db = Server.CreateObject(" ADODB.Connection") shipment_db.Open" shipping" 设置shipmentTable = shipment_db.Execute(" SELECT * FROM shipment WHERE ID = 39") y = shipmentTable(" Specification") Response.Write"< TEXTAREA rows = 4 cols = 20 id = textarea1 name = textarea1>< / TEXTAREA>" %> <脚本语言= JavaScript> document.form1.textarea1.value ="<%= y%>" < / Script> <% Response.Write"< / FORM>" %> 货件是Microsoft Access的表格,规格是这个表格的字段。 但是这个字段有退货。也就是说 shipmentTable(QUOT;规格及QUOT;)=" ; abc edf ghi" textarea1无法显示shipmentTable(" Specification")'的value.it显示无。 谢谢 解决方案 谢谢, 使用newString = replace(oldString,vbcrlf,"< br>") textarea可以显示value.But oldString''返回更改为< br>。 也就是说: 如果oldString =" ABC DEF GHI" textarea显示ABC< br> DEF< br> GHI。 我等待任何人的帮助。 Hello,<%@ Language=VBScript %><%Response.Write "<FORM name=form1>"Set shipment_db = Server.CreateObject("ADODB.Connection")shipment_db.Open "shipment"Set shipmentTable = shipment_db.Execute("SELECT * FROM shipment WHERE ID=39")y=shipmentTable("Specification")Response.Write "<TEXTAREA rows=4 cols=20 id=textarea1name=textarea1></TEXTAREA>"%><Script language=JavaScript>document.form1.textarea1.value="<%=y%>"</Script><%Response.Write "</FORM>"%>shipment is a Microsoft Access''s table,Specification is this table''s field.But this field has returns.That is to sayshipmentTable("Specification")="abcedfghi"textarea1 cannot shows shipmentTable("Specification")''s value.it shows none.Thank you 解决方案 这篇关于textarea如何通过返回显示价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-29 12:05