Question 1:js What is the ability to speak such a language? (Run platform) problem 2:js whether the ability to manipulate files (generally not), Ajax can manipulate files (generally not)?

Source: Internet
Author: User

question: What is the ability of JS to speak such a language? (Running platform)

A: Now the JS language can be run in the browser (js If it is running on the browser can not operate the disk file), you can also run NodeJs on the server side ( JS can manipulate files on the server side).

question:JS is able to manipulate the file (generally not),Ajax can manipulate files (generally not)?

For:

A. js generally can not, but in the case of the situation, if it is on the server side, you can operate. If it is on the browser side, it cannot be manipulated directly, but it can manipulate cookie small files.

B. Ajax generally cannot manipulate files, but in the latest Ajax level2(formData object) Standard, the interface for manipulating files is provided, You can manipulate the file directly. To do real Ajax without refreshing upload files ( previously did not use Ajax to do no flush upload files using iframe nesting technology, can also be called the most primitive Ajax).

Answer:Jscan operateCookies. Cookiestechnology that belongs to the browser side. Cookiesis also the data, the data is stored somewhere (the client's computer somewhere, the browser tube)Cookiesthe number and size of these are strictly limited (4keach) But there is currently a client presence localstorage Local Database technology (limitations, only in modern browsers using the Web browser IE low version not supported)

Question 1:js What is the ability to speak such a language? (Run platform) problem 2:js whether the ability to manipulate files (generally not), Ajax can manipulate files (generally not)?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.