splitting string values using javascript
问题 I have a string of words (item names) being passed to my front end from the database I have set up. It is all working great, but I in my table in html, I have the item name in a loop, so the item names are stuck together if there is more than one item, like so: Item name1Item name2 I am passing them through to the front end using an ejs loop, and <%= data[i].ITEMNAME %>, which passes the values from the database in that specific row. So they are always changing depending on the item name. An