摘要: BuzzController = ($resource) -> @userId = 'googlebuzz' @Activity = $resource 'https://www.googleapis.com/buzz/v1/activities/:userId/:visibility/:activityId/:comments', {alt: 'json', callback: 'JSON_CALLBACK'}, {get:{method:'JSONP', params:{visibility:'@ 阅读全文
posted @ 2013-10-06 19:29 Simeon Chaos 阅读(120) 评论(0) 推荐(0)
摘要: checkoutParameters=(@serviceName,@merchantID,@options)->#空的函数体生成的js,不需要加return:varcheckoutParameters;checkoutParameters=function(serviceName,merchantID,options){this.serviceName=serviceName;this.merchantID=merchantID;this.options=options;};cartItem=(@sku,@name,price,quantity)->@price=price*1@q 阅读全文
posted @ 2013-10-06 10:47 Simeon Chaos 阅读(228) 评论(0) 推荐(0)