【发布时间】:2014-01-24 12:47:04
【问题描述】:
我正在使用 turn.js,但是我收到错误 TypeError: $(...).turn is not a function 目前我的 js 是:
function loadApp() {
// Create the flipbook
$('.flipbook').turn({
// Width
width:922,
// Height
height:600,
// Elevation
elevation: 50,
// Enable gradients
gradients: true,
// Auto center this flipbook
autoCenter: true
});
}
// Load the HTML4 version if there's not CSS transform
$(document).ready(function() {
yepnope({
test : Modernizr.csstransforms,
yep: ['../../lib/turn.js'],
nope: ['../../lib/turn.html4.min.js'],
both: ['css/basic.css'],
complete: loadApp
});
});
有什么我可能会出错的想法吗?
【问题讨论】:
-
脚本加载是否正确
-
控制台还有其他错误吗?
-
你有没有把jquery添加到你的页面
标签: javascript turnjs