can we use a variable to declare a div in JAVASCRIPT?
问题 I am working in Phone Gap-android.I wanted to set a SWIPE VIEW dynamically based on the length of the records. How do i do that? After long time,I tried implementing the following code.Am I right or Wrong? value= VALUE_FROM_DB.split("||"); for (k=0;k<value.length;k++) { if (value[0] == paramName1) { return unescape(value[k]); console.log("no of swipe views "); } var val = k+1; var ni = document.getElementById('swiper-wrapper'); var newdiv = document.createElement('div'); var divIdName =