php - explode new line in javascript -
how convert php code below javascript? google , found st.replace(/,/g,"\n") how apply variable? have low knowledge javascript , trying learn it.
$items = explode("\n", $model);
the answer is:
items = model.split("\n")
Comments
Post a Comment