0

所以我在 html 页面上使用以下代码:

var uploader = document.getElementById('uploader');
    upclick(
     {
      element: uploader,
      action: 'helpers/uploadScript.php', 
      onstart:
        function(filename)
        {
          alert('Start upload: '+filename);
        },
      oncomplete:
        function(response_data) 
        {
          alert(response_data);
        }
     });

这应该调用我找到的 Google 文件上传器,但我收到以下错误:

GET http://***/helpers/upclick.js 500 (Internal Server Error) add.html:6

Uncaught ReferenceError: upclick is not defined add.html:17 (匿名函数)

难道我做错了什么?

4

0 回答 0