5
JS फाइल में html को html स्ट्रिंग में बदलें
मैं JS के माध्यम से कुछ html बनाना चाहता हूं, इसलिए मुझे JS फ़ाइल के अंदर html लिखने की आवश्यकता है: function createHtmlSection() { return "<li class=\"chapter up-wrapper-btn\">" + "<div>" + "<button><i class=\"fa fa-plus\" onclick=\"addSection('up',this)\"></i></button>" + "<label contenteditable=\"true\">section 1</label>" + "</div>" + "</li>"; } क्या इस प्रकार का html स्ट्रिंग …
14
javascript
html