我从这个站点<script type="text/javascript" src="/gestionRH/js/jquery/jqueryFileDownload.js"></script>
导入了这个插件的js文件,如下所示
$.fileDownload('mypath');
Firebug 向我显示了这个错误:TypeError: $.fileDownload is not a function
chrome显示:未捕获TypeError: Object function (a,b){return new d.fn.init(a,b,g)} has no method 'fileDownload'
这是整个代码
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="/gestionRH/js/jquery/jquery13_min.js"></script>
</head>
<body>
<input type="button" id="download" value="download">
</body>
<script type="text/javascript">
$("#download").live("click",function(){
$.fileDownload('C:\\Users\\free\\Desktop\\myworkspace\\gestionRH\\WebRoot\\fiches\\note.doc');
});
</script>
</html>