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
1. If there is no error in the console, it should be a style problem. I have used
iscroll5
,知道它要求滑动的元素需要特定的定位
。你可以看看
iscroll4
是不是也有这方面的需求;另外,iscroll5
portalhttps://github.com/ibspoof/ng...
Look at this demo. Can be solved perfectly