亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Front-end - How angularJS uses isscroll4 to achieve page scrolling effect
大家講道理
大家講道理 2017-05-15 16:54:56
0
2
669

Use the project created by yeoman, then download the iscroll4 from bower, and call it directly with native js

var myScroll;
function loaded(){
    myScroll = new iScroll('wrapper');
}
document.addEventListener('touchmove', function(e){
    e.preventDefault();
}, false);
document.addEventListener('DOMContentLoaded', function(){
    setTimeout(loaded, 200);
}, false);

But it has no effect. . .
I am new to angularJS, and the teacher who tutors me is very busy now. So I would like to ask you for advice on how to use it.
Console error: Uncaught ReferenceError: IScroll is not defined

大家講道理
大家講道理

光陰似箭催人老,日月如移越少年。

reply all(2)
PHPzhong

1. If there is no error in the console, it should be a style problem. I have used iscroll5,知道它要求滑動的元素需要特定的定位
你可以看看iscroll4是不是也有這方面的需求;另外,iscroll5portal

過去多啦不再A夢

https://github.com/ibspoof/ng...
Look at this demo. Can be solved perfectly

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template