var getScale = function(){
return {
x:($boy.x / window.x),
y:($boy.y / window.y)
}
};
var scale = getScale();
$(function(){
$(window).resize(function(){
$boy.css({
height:oldScale.y * $(window).height(),
width:oldScale.x * $(window).width()
});
scale = getScale();
});
});
return {
x:($boy.x / window.x),
y:($boy.y / window.y)
}
};
var scale = getScale();
$(function(){
$(window).resize(function(){
$boy.css({
height:oldScale.y * $(window).height(),
width:oldScale.x * $(window).width()
});
scale = getScale();
});
});
2015-11-04
Swipe.js文件调用swipe.scrollTo,这运行提示swipe没定义,我是照着代码敲的了,问了其他前辈也没能解决,求指教
2015-11-03
<script type="text/javascript" src="http://img1.sycdn.imooc.com//down/55ac9ea30001ace700000000.js"></script>是干嘛的
2015-10-29