开发者

Javascript question [closed]

开发者 https://www.devze.com 2023-01-09 06:36 出处:网络
开发者_JAVA技巧 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
开发者_JAVA技巧 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

What do you usually do with Javascript? I use it to validate form, creating drop down menu and was wondering if you guys use it for other purposes. After all, Jquery is better from my point of view......


I'm confused, jQuery is written in JavaScript.

Anyway, I use both for all sorts of functions on the front-end, including:

  • Creating nice grids of data using jqGrid
  • Creating themed dialog boxes, buttons, spinners, etc using jQuery UI
  • Easily setting / retrieving values from the DOM using jQuery selectors and val, text, html, etc...
  • Easily querying web services using jQuery AJAX

I could really just keep going on and on :)

But very little of this uses raw JavaScript. About all I use raw JavaScript for are those things that are not necessary for jQuery to provide, which usually boils down to:

  • String and Array functions
  • Integer / String conversions functions


I use javascript for improving the UI of a web page. For example, I use it to cache data locally which would otherwise require multiple calls to the web server.


jQuery is just a framework, written in JavaScript, to simplify and enhance the functionality of JavaScript.

What do you usually do with JavaScript? Whatever you need to do... I am getting more in-depth with jQuery and using it for building entire interfaces and controlling every little action.

0

精彩评论

暂无评论...
验证码 换一张
取 消