be-fe / iSlider

Smooth mobile touch slider for Mobile WebApp, HTML5 App, Hybrid App
http://be-fe.github.io/iSlider/
MIT License
1.66k stars 448 forks source link

在图片外层加一个超链接不能跳转 #341

Closed jstf9673 closed 8 years ago

jstf9673 commented 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']
                                });

像这样的怎么不能跳转,望大神能解答,谢谢

xieyu33333 commented 8 years ago

href的值没加引号啊

jstf9673 commented 8 years ago

thank you ,想不到还患这种低级错误。。。。。。。。。。。。。。