Use the TEXTAREA tag to press ENTER to wrap a line in the Web page

Source: Internet
Author: User

For textarea label line-wrapping problem, is actually to replace the textarea in the ENTER key to the Web page "<br/>".

Here are some of my methods.

First I was writing a method (methods)

Formatsolution (s) {
if (s) {
Return S.replace (/\s/g, ' <br/> ')
} else return '
},

Then find the appropriate location in the HTML.

<tbody>
<tr v-for= "(x,index) in Feedbacklist" >
<TD v-text= "X.id" ></td>
<TD v-text= "Format (x.createtime)" ></td>
<TD v-text= "X.feedback" ></td>
<TD v-text= "X.ktvid" ></td>
    <TD v-html= "formatsolution (x.solution)" style= "Text-align:left" ></td>
<TD v-text= "Format (x.updatetime)" ></td>
<td><a href= "javascript:;" @click = "Modify (Index)" class= "Curedit" > Modify </a></td>
</tr>
</tbody>

Well, it's done.

Use the TEXTAREA tag to press ENTER to wrap a line in the Web page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.