首页> 外文期刊>Net >/JavaScript/build a web app with Nodejs
【24h】

/JavaScript/build a web app with Nodejs

机译:/ JavaScript /使用Nodejs构建Web应用

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

What's great is that if you've ever written browser JavaScript you already know about the event loop.When you want to make an Ajax request in the browser you request a file, and then you have to wait for it to happen. It's not immediate. Instead you give it a callback function that's executed when the response is received from the server. That's the event loop.You tell the browser that when the event of receiving a response happens it should call your function. You've almost certainly used onMouseOver or onLoad events too. Events are an essential part of working in the browser.
机译:很棒的是,如果您曾经编写过浏览器JavaScript,那么您已经知道事件循环。当您想在浏览器中发出Ajax请求时,您需要一个文件,然后必须等待它发生。这不是立即的。取而代之的是给它一个回调函数,当从服务器收到响应时执行该回调函数。那就是事件循环。您告诉浏览器,当接收到响应事件时,应该调用您的函数。您几乎可以肯定也使用过onMouseOver或onLoad事件。事件是在浏览器中工作的重要组成部分。

著录项

  • 来源
    《Net》 |2011年第216期|p.106-109|共4页
  • 作者

    Tom Hughes-Croucher;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号