我无法从Filezilla在Windows中打开JS文件 [英] I can't open JS files in Windows from Filezilla

查看:164
本文介绍了我无法从Filezilla在Windows中打开JS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Filezilla登录到FTP并尝试打开一个JS文件,它给了我以下错误:

I logged in to my FTP from Filezilla and tried to open a JS file, and it gave me the following error:

Script:    C:/.../slider.js
Line:      1
Char:      1
Error:     'document' is undefined
Code:      800A1391
Source:    Microsoft JScript runtime error

我有jQuery链接到.php文件以及...'document '来自:

I have jQuery linked to the .php file as well...'document' comes from:

$(document).ready(function() {
    //Code is here...
});

我试着下载文件并打开它,我尝试删除$(document).ready() ;,我试图删除jquery(顺便说一下,当我打开jQuery文件,它给了我几乎相同的错误)。任何帮助表示赞赏。谢谢!

I tried downloading the file and opening it, I tried removing the $(document).ready();, I tried removing jquery (which by the way, when I opened the jQuery file it gave me the same almost the same error). Any help is appreciated. Thanks!

编辑:

这篇文章的其中一个标签是asp.net,但是老实说,我甚至不知道它是否与asp.net有关... ...

One of the tags for this post was "asp.net", but to be honest I don't even know if it is related to asp.net...

推荐答案

我有同样的问题,通过在Filezilla中执行以下操作来修复它:

I had the same issue and fixed it by doing the following in Filezilla:

  1. 转到编辑>设置

  2. 部分

  3. 在'默认编辑器'下:确保选择Notepad ++作为自定义编辑器

  4. 将单选按钮从'使用文件类型关联到'始终使用默认编辑器'

这篇关于我无法从Filezilla在Windows中打开JS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆