Closed jstf9673 closed 8 years ago
var list=[]; for(var i=0;i<res.data.length;i++){ // list.push({content:ac_url+res.data[i].activity_img2}); list.push({content:'<a class="sliders" href=theme1.html?activityId='+res.data[i].id+'><img class="img_responsive" src='+ac_url+res.data[i].activity_img2+'>'}); } console.log(JSON.stringify(list)); var opts = new iSlider({ dom: document.getElementById('iSlider-wrapper'), data: list, isLooping: 1, animateTime: 800, // ms plugins: ['dot'] });
像这样的怎么不能跳转,望大神能解答,谢谢
href的值没加引号啊
thank you ,想不到还患这种低级错误。。。。。。。。。。。。。。
像这样的怎么不能跳转,望大神能解答,谢谢