Cannot read property 'length' of undefined 问题 Scrollify需要jQuery 1.6 +和jquery.easing.js。n你的jquery是不是版本太低啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我没弄过这个东西 ,你去官网上看看 ,我觉得就是你引的包不对或者 包有冲突。网上说只要:Scrollify需要jQuery 1.6 +和jquery.easing.js。 $.scrollify({ section:".test", });你的这里多个逗号。去掉试试。 Firebug 看下具体是错在哪里 不支持 HTML5 吧?到这里下载个示例包 http://download.csdn.net/download/u013819968/7505723 不是还有个 <!--[if lt IE 9]> <script src="js/html5shiv.min.js"></script> <![endif]-->吗?你注意到没有? jquery 1.6以上需要用data-name="value"这样来绑定数据,为的是向html5兼容。看看是不是这个原因。http://api.jquery.com/data/<div data-role="page" data-last-value="43" data-hidden="true" data-options='{"name":"John"}'></div>$( "div" ).data( "role" ) === "page";$( "div" ).data( "lastValue" ) === 43;$( "div" ).data( "hidden" ) === true;$( "div" ).data( "options" ).name === "John"; <section data-section-name="overview"> </section>吧你的section设计成这个样子就可以了 。主要是这个data-section-name。 <! doctype html> <html> <head> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <script src="js/scrollify.min.js"></script> <script src="js/jquery.easing.1.3.js"></script> <script> $(function(){ $(".test").css({"height":$(window).height()}); $.scrollify({ section:".test", }); }); </script> <style> .test{ width: 100%; } .red{ background-color: red; } .blue{ background-color: blue; } </style> </head> <body> <section class="test red" data-section-name="overview">fffffffffffff</section> <section class="test blue" data-section-name="overview">fffffffffffff</section> </body> </html> 如何在本站点连接到其他站点,并把其他站点需要的查询参数带过去。 联动在ie下没问题,在火狐下不起作用。急,在线等。已经上服务器了,可是出现了这个问题。帮忙啊! 多个全选(check)在一个gridview中,js应如何实现 Operation aborted错误 ●●●●●●●怎么设置frameset的高度? 请教一个用js控制mediaplay的问题 checkbox disabled="false" 后执行不了点击事件? rs.update的问题 如何给日期控件赋初植? 安装vue-cli脚手架报错 求JS正则,文字替换表情 hide问题
section:".test",
});你的这里多个逗号。去掉试试。
到这里下载个示例包 http://download.csdn.net/download/u013819968/7505723
<script src="js/html5shiv.min.js"></script>
<![endif]-->
吗?你注意到没有?
http://api.jquery.com/data/<div data-role="page" data-last-value="43" data-hidden="true" data-options='{"name":"John"}'></div>
$( "div" ).data( "role" ) === "page";
$( "div" ).data( "lastValue" ) === 43;
$( "div" ).data( "hidden" ) === true;
$( "div" ).data( "options" ).name === "John";
</section>
吧你的section设计成这个样子就可以了 。主要是这个data-section-name。
<html>
<head>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script src="js/scrollify.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script>
$(function(){
$(".test").css({"height":$(window).height()});
$.scrollify({
section:".test",
});
});
</script>
<style>
.test{
width: 100%;
}
.red{
background-color: red;
}
.blue{
background-color: blue;
}
</style>
</head>
<body>
<section class="test red" data-section-name="overview">fffffffffffff</section>
<section class="test blue" data-section-name="overview">fffffffffffff</section>
</body>
</html>