...
首页> 外文期刊>Web techniques >Scripting Applets Pays Off
【24h】

Scripting Applets Pays Off

机译:脚本编写的小程序有回报

获取原文
获取原文并翻译 | 示例

摘要

When you want to add client-side functionality to a Web site you have to make a choice: applets or JavaScript. Then again, do you? Java applets are powerful, but compared to JavaScript they're hard to develop and modify. On the other hand, some jobs are tough to code using script. Why not partition your task so you can use an applet in conjunction with a script? Then you can incorporate the best parts of each technology. To illustrate this idea, I've put together an applet designed to work with a script. The applet simulates a pair of dice. Since that's all it does, you could use it for a variety of Web sites. The example this month is a simple craps game (see Figure 1). However, you could easily create a variety of casino games, board games, or even role-playing games. If you don't like games, you can apply the same techniques to more serious applets.
机译:当您想向网站添加客户端功能时,必须做出选择:applet或JavaScript。再来一次,对吗? Java小程序功能强大,但与JavaScript相比,它们很难开发和修改。另一方面,某些作业很难使用脚本编写代码。为什么不对任务进行分区,以便可以将小程序与脚本结合使用?然后,您可以合并每种技术的最佳部分。为了说明这个想法,我整理了一个旨在与脚本一起使用的applet。小程序模拟一对骰子。由于这就是全部,您可以将其用于各种网站。本月的示例是一个简单的掷骰子游戏(参见图1)。但是,您可以轻松创建各种娱乐场游戏,棋盘游戏,甚至是角色扮演游戏。如果您不喜欢游戏,则可以将相同的技术应用于更严重的applet。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号