小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

10 things you cannot do with Javascript

 goldbomb 2007-03-19
  1. Javascript cannot access the local file system. You cant read or write files on the user’s computer - its a security feature to prevent sites doing anything they like on your computer (like leave a virus…)
  2. Javascript cannot access the remote file system either! It used to be the accepted knowledge that you couldn’t even access files hosted on the server…things have changed slightly with the wide-spread support for XMLHttpRequest, but you’ve still only got HTTP to play with - you cant move files around, rename them, change permissions or anything like that on the server using only Javascript.
  3. Javascript cannot run any application outside the browser. Just like with point 1, this is a security feature to prevent a website doing as it pleases.
  4. Javascript cannot access your printer/scanner/webcam. Javascript has no direct access to your peripherals without relying on 3rd party tools etc.
  5. Javascript cannot change the URL displayed by the browser. Again this is for security reasons, otherwise any old site could simply change the displayed URL to look like your Bank’s or PayPal’s etc secure site to trick you into entering your details.
  6. Javascript cannot change the browser history. For example, you cannot control which page appears if the user clicked on the “back” button in their browser.
  7. Javascript cannot access your database. If you’ve got a MySQL or SQL Server database on your server, you cannot use Javascript to access it directly - you’ll need to use a server-side language (e.g. PHP, ASP etc) for that.
  8. Javascript cannot “encrypt” your HTML or prevent “image theft”. It is pathetically easy to circumvent so-called Javascript “security” features, so its not even worth trying. If a user can see your page, they can steal it!
  9. Javascript cannot control the user’s mouse or keyboard. Sorry but Javascript wont let you “hijack” a user’s mouse and move it to click on your site’s adverts to make you money!
  10. Javascript cannot use multiple threads. There are some moves afoot to try and create some sort of library to accomplish this, but for now the advice is don’t worry about optimising your Javascript for multiple core CPUs!

    本站是提供個(gè)人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多