While shopping, he finds an item he wants, snaps a picture of the bar code with his cell phone, and places the item in his cart.
在购物时,他发现了需要的商品,使用移动电话拍摄了条形码图形,并将商品放在购物车中。
The method also returns the Cart, so that the client code can update the Cart contents and receive its new state in a single operation.
方法还返回Cart,这样客户代码在一个操作中就能更新Cart的内容并接收购物车的新状态。
Instead of having the client code make two calls on Cart, one to obtain the contents and one for the total price, I want to send all of this data to the client at once.
为了不让客户代码对Cart做两个调用(一个获得内容,一个获得总价),我想把这些数据一次全都发给客户。
He searches the asset repository for relevant componentized assets and finds the "add to cart" code.
他在资产存储库中搜索相关的组件化资产,找到了“添加到购物车(add to cart)”代码。
Although the query looks simpler than the XQuery, we must query the database for each item in the cart, resulting in increased database traffic and slightly more loop-oriented application code.
虽然查询看起来比XQuery简单,但我们必须为购物车中的每个货品查询数据库,导致数据库流量增加,应用程序代码有些更面向循环。
Listing 1 shows the relevant HTML code the shopping-cart example USES. I'll refer back to this HTML throughout the article.
清单1显示了购物车示例使用的有关HTML代码,整篇文章中都会使用这个HTML。
For instance, I've included server-side code to remove items from the cart, but no way to access it from the UI.
例如,我包含了从购物车中清除项目的服务器端代码,但是无法从UI访问它。
While some of the code in this article is specific to the shopping cart example, the techniques illustrated can be applied to any Ajax application.
虽然这篇文章中的有些代码特定于购物车示例,但是演示的技术可以应用于任何Ajax应用程序。
Now this Web service can be called from the client code to display the cart information on the Web site.
现在可以从客户机代码调用此Web服务,在Web站点中显示购物车信息。
This Seaside task handles the shopping cart checkout. You'll see this code.
这个Seaside任务处理购物车结帐。
Note that the SessionData class defined in Listing 3 is a user-defined data structure to store various shopping cart information (Click the code icon at the top or bottom of this article).
请注意,清单3中定义的sessiondata类是用于保存各种购物车信息的用户自定义数据结构(点击本文顶部或底部的code图标)。
Once you decide on the yarn, select the color code and quantity, click to add to shopping cart.
决定好要买的线,选定色号和数量后,放入购物车。
If you need my zip code in the shopping cart page to calculate these costs, just ask me and I will be happy to provide that information to you. Which leads me to the next point.
如果你在购物车页需要我的邮政编码去计算运费,请告知我,我会很乐意提供信息给你的。
If you need my zip code in the shopping cart page to calculate these costs, just ask me and I will be happy to provide that information to you.
如果你在购物车页需要我的邮政编码去计算运费,请告知我,我会很乐意提供信息给你的。
If you need my zip code in the shopping cart page to calculate these costs, just ask me and I will be happy to provide that information to you.
如果你在购物车页需要我的邮政编码去计算运费,请告知我,我会很乐意提供信息给你的。
应用推荐