The Q&A during Webkit learning.

  1. IDE: Eclipse IDE for Javascript web developer

Tools for JavaScript developerscreating Web applications, including a JavaScript IDE, tools for JavaScript,HTML, CSS, and XML.

You can read the document firstfrom here to get some information first.

http://kellicker.wordpress.com/2010/08/18/javascript-eclipse-ide-jsdt-getting-started/

Then you can download the JSDT fromhere

http://www.eclipse.org/downloads/packages/eclipse-ide-javascript-web-developers/heliosr

  1. Unzip it and can get an eclipse folder.
  2. Don’t need install it, just double click “eclipse.exe” to run.
  3. If you encounter a error that “Failed to create the Java Virtual Machine”, do bellow changes:

5.      The Chinese strings in the html can’t showcorrectly in Eclipse.

Root cause:

Default encoding is cp1252 in Eclipse.

Solution:

Windows->Preferences->General->Workspace->TextFile Encoding->Other(UTF-8)


6.      What’s the meaning of Javascript $() and $F()?

$() is a abbreviation of methoddocument.getElementById() in DOM. You can think it$()=document.getElementById()

$F() is a method abbreviation, used to getthe value of a control item in form. The parameter can be the element id orelement itself, looks like $F(“userName”)

猜你喜欢

转载自blog.csdn.net/wowo1109/article/details/6665659
Q&A
今日推荐