我的页面标题中有这个脚本:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$(document).idleTimeout({
inactivity: 30000,
noconfirm: 10000,
sessionAlive: 10000
});
});
但它会产生错误,我不明白为什么。错误是这样的:
Uncaught TypeError: Object [object Object] has no method 'idleTimeout'
我正在使用jQuery
:jquery-1.10.2.min.js
感谢您的帮助。
更新 感谢您的帮助,脚本源路径中存在拼写错误。
最佳答案
idleTimeout 不是 jQuery 默认函数,您需要下载此插件
关于jQuery 函数未在加载页面上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18460728/