<script>
$(document).ready(function() {

if (!Array.prototype.forEach) {  
    Array.prototype.forEach = function(fun /*, thisp*/){  
        var len = this.length;  
        if (typeof fun != "function")  
            throw new TypeError();  
        var thisp = arguments[1];  
        for (var i = 0; i < len; i++){  
            if (i in this)  
                fun.call(thisp, this[i], i, this);  
        }  
    };  
}

var jt=$("#jt").val();
var arrjt=jt.split(/,|,/);
var arrjtA=[];
var jtemp="";
for(i=0;i<arrjt.length;i++){
arrjtA.push(arrjt[i]);
}
arrjtA.forEach(function(e){
jtemp+="<div class='swiper-slide'><img src='images/"+e+"'/></div>";
});
$("#screenshot").html(jtemp);
var tz=$("#tz").val();
var arrtz=tz.split(/;|;/);
var arrtzA=[];
var temp="";
for(j=0;j<arrtz.length;j++){
arrtzA.push(arrtz[j]);
}
arrtzA.forEach(function(e){
temp+="<li class='xinban'>▪"+e+"</li>";
});
$("#feature").html(temp);
});
</script>

 

<input type="hidden" >

</div>

 

<input type="hidden" >

</ul>

 

部分来自:http://segmentfault.com/a/1190000002486377

相关文章:

  • 2022-12-23
  • 2022-01-19
  • 2021-11-22
  • 2022-12-23
  • 2022-02-07
  • 2022-01-31
  • 2021-11-19
  • 2021-08-13
猜你喜欢
  • 2022-02-17
  • 2022-12-23
  • 2021-05-29
  • 2022-02-03
  • 2021-11-28
  • 2021-08-20
相关资源
相似解决方案