Similar to such comments quoted, is, how do ah,?
I saw on the Internet using js, HTML code is as follows:
<script type="text/javascript"> The function yinyong (id) { Document. Forms. Form1. FreeTextBox1. Value="https://bbs.csdn.net/topics/reply:" + document. GetElementById (id). ParentNode firstElementChild. TextContent. Replace (/^ \ s + | \ s + $/g, "") Alert (document. Forms. Form1. FreeTextBox1. Value); } </script> This code, I can read, but stored in the database will also have "document. Forms. Form1. FreeTextBox1. Value" the value is stored in the product of the corresponding database table?
CodePudding user response:
This only will rich the content of the text box assignment, eventually store or just store the rich content of the text box
CodePudding user response:
You just have a look at the page's HTML source code, front-end HTML/CSS/javascript are open source,
For example,
refer to the original poster zhentoufei response: I saw on the Internet using js, HTML code is as follows: You look at the HTML to write here what open? CodePudding user response:
The above content, you can see in the HTML & lt; Fieldset> I saw on the Internet using js, HTML code is as follows: & lt;/blockquote> The HTML should be able to read it? ! Know the HTML structure and the content is very easy to understand, in the submission (that is, at the bottom of the page to submit the frame) when the content found in & lt; Quote]... on, then immediately replaced with the corresponding bai, the HTML Submitted for the database, can save the UBB pseudo code format, also can save the final HTML format, as a result of the submitted UBB format actually useless, so I suggest only to save the contents of the HTML format, CodePudding user response:
You stick the js code, just automatically insert a text in the editing content (so that the user manual changed type), and there is no relationship with the overall situation, actually you should not be based on this fur to understand a bit more advanced features, CodePudding user response:
Click on the reference, equivalent to a copy of the above information, placing them in a section of the HTML code CodePudding user response:
reference 123 floor sp12354 reply: the content above, you can see in the HTML & lt; Fieldset> I saw on the Internet using js, HTML code is as follows: & lt;/blockquote> The HTML should be able to read it? ! Know the HTML structure and the content is very easy to understand, in the submission (that is, at the bottom of the page to submit the frame) when the content found in & lt; Quote]... on, then immediately replaced with the corresponding bai, the HTML Submitted for the database, can save the UBB pseudo code format, also can save the final HTML format, as a result of the submitted UBB format actually useless, so I suggest only save HTML content, 12354 123 CodePudding user response:
The refer to the original poster zhentoufei response: Similar to such comments quoted, is, how do ah,? I saw on the Internet using js, HTML code is as follows: <script type="text/javascript"> The function yinyong (id) { Document. Forms. Form1. FreeTextBox1. Value="https://bbs.csdn.net/topics/reply:" + document. GetElementById (id). ParentNode firstElementChild. TextContent. Replace (/^ \ s + | \ s + $/g, "") Alert (document. Forms. Form1. FreeTextBox1. Value); } </script> This code, I can read, but stored in the database will also have "document. Forms. Form1. FreeTextBox1. Value" the value is stored in the product of the corresponding database table? The onlookers watch CodePudding user response:
First do the processing of data, see how do you design your table structure, the reply must have its corresponding relation,,, And then there is the front to show the processing of the,,, CodePudding user response:
The refer to the original poster zhentoufei response: Similar to such comments quoted, is, how do ah,? I saw on the Internet using js, HTML code is as follows: <script type="text/javascript"> The function yinyong (id) { Document. Forms. Form1. FreeTextBox1. Value="https://bbs.csdn.net/topics/reply:" + document. GetElementById (id). ParentNode firstElementChild. TextContent. Replace (/^ \ s + | \ s + $/g, "") Alert (document. Forms. Form1. FreeTextBox1. Value); } </script> This code, I can read, but stored in the database will also have "document. Forms. Form1. FreeTextBox1. Value" the value is stored in the product of the corresponding database table? this is referenced CodePudding user response:
The refer to the original poster zhentoufei response: Similar to such comments quoted, is, how do ah,? I saw on the Internet using js, HTML code is as follows: <script type="text/javascript"> The function yinyong (id) { Document. Forms. Form1. FreeTextBox1. Value="https://bbs.csdn.net/topics/reply:" + document. GetElementById (id). ParentNode firstElementChild. TextContent. Replace (/^ \ s + | \ s + $/g, "") Alert (document. Forms. Form1. FreeTextBox1. Value); } </script> This code, I can read, but stored in the database will also have "document. Forms. Form1. FreeTextBox1. Value" the value is stored in the product of the corresponding database table? empire of kung fu