Webpack cannot dynamically set html content in the html, of require in js

footer.html

clipboard.png

footer.js

clipboard.png

html has been rendered, but the value of span is still the original value.
how to set the value of span dynamically?


has nothing to do with webpack. Your code is equivalent to

.
var footer = '<footer><span></span></footer>'

footer = $(footer).find('span').text('sss').parent()[0].outerHTML
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35704-34343.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35704-34343.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?