摘要: First: Annotation introductionAnnotations provide data about a program that is not part of the program itself. They have no direct effect on the operation of the code they annotate.Annotations have a number of uses, among them:Information for the compiler — Annotations can be used by the compiler to 阅读全文
posted @ 2012-08-17 16:18 zhangxp 阅读(232) 评论(0) 推荐(0)
摘要: SeaJs: web浏览器端的模块加载器,常常看到杂乱的js引入,这个组件模块化的管理我们的js文件。哇,整个世界都清爽了......生活更加的美好了!实例代码:define(function(require, exports, module) { var $ = require('jquery'); exports.sayHello = function() { $('#hello').toggle('slow'); };});将上面的代码保存为 hello.js,然后就可以通过 SeaJS 来加载使用了:seajs.config({ alia 阅读全文
posted @ 2012-08-15 16:02 zhangxp 阅读(315) 评论(0) 推荐(0)