ext.js多次下载文件后360浏览器页面卡死

JavaScript07

ext.js多次下载文件后360浏览器页面卡死,第1张

ext.js多次下载文件后360浏览器页面卡死的原因有以下:

1、欲打开的网页本身有问题,太大或者程序有误,导致浏览器卡死

2、操作系统资源不足,较常出现在老、旧、配置较差的电脑上

3、360浏览器兼容性问题,部分语音兼容的不太好,导致打开特殊网页异常

Eclipse中jsp、js文件编辑时,卡死现象解决汇总

使用js文件时,经常出现卡死现象逐步好转,具体那个方法起到作用,不太好讲。将所有用过的方法罗列如下:

1、取消验证

windows–>perferences–>validation

把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator

2、关闭拼写检查

windows–>perferences–>general–>editors->Text Editors->spelling

3、对于MyEclipse来讲,修改JSP页面时的编辑工具

Window >perferences >General >Editors >File Associations >

在File types 中选择 *.jsp >在Associated editors 中将"MyEclipse JSP Editor"设置为默认。

4、杜绝jar包访问网络

当用卡死。

这是因为解 决方法:window-->preferences-->java-->installed JREs,编辑使用的jre,把rt.jar和charsets.jar的javadoc location设置为空(none)即可。当然也可以去下载javadoc到本机,进行相关设置也可以解决。

另外:把自己项目中所有用到的jar包,都作同样处理。

5、修改打开链接的快捷键

最近在MyEclipse中编辑代码时,使用快捷键进行复制粘贴,经常会导致编辑器短暂的停顿,光标不跟随,居然反应不过来,几近假死。

想来想去应该是编辑上的什么配置或者是IDE的什么功能导致,于是进入Preferences查找edit功能,进行一个个的测试,最后发现原来是代码的超链功能导致。

进入方法:Window ->Preferences ->General ->Editors ->Text Editors ->Hyperlinking

把超链的快捷键改为其他键比如Alt(不能改为shift)

说明:在这个功能确实非常好用,但是由于复制粘贴的功能快捷键也是Ctrl,以致我在快速进行操作的时候,原网页地址:http://liyanblog.cn/articles/2013/03/28/1364464592117.html#6555527-youdao-1-342-6bf3f08145fcae5f9805082906cbbf15

6、修改项目的.project文件

js编辑器非常慢,尤其在拷贝粘贴代码时的解决方法

使用的是官网标准版的JS时JS再也不似蜗牛了.

<buildSpec>

<buildCommand>

<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

<triggers>full,incremental,</triggers>

<arguments>

<dictionary>

<key>LaunchConfigHandle</key>

<value><project>/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch</value>

</dictionary>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.jdt.core.javabuilder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.wst.common.project.facet.core.builder</name>

<arguments>

</arguments>

</buildCommand>

<buildCommand>

<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

<triggers>full,incremental,</triggers>

<arguments>

<dictionary>

<key>LaunchConfigHandle</key>

<value><project>/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch</value>

</dictionary>

</arguments>

</buildCommand>

</buildSpec>

<natures>

<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

<nature>org.eclipse.wst.common.project.facet.core.nature</nature>

<nature>org.eclipse.jdt.core.javanature</nature>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

</natures>

原文链接:http://blog.csdn.net/bell2008/article/details/8758290

7、调整在eclipse.ini文件,将其中的参数改成:

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms512m

-Xmx512m

-XX:PermSize=256M

-XX:MaxPermSize=256M

-XX:-UseGCOverheadLimit