The first block performs some initialization, then retrieves the contents from the cart, asking the user to confirm the contents.
第一个块完成一些初始化工作,然后检索购物车的目录,并请求用户确认目录。
The first block contains the initialization code for the data storage and the view, as shown in Listing 2.
第一个块包括数据存储和视图的初始化代码,如清单2所示。
In this case, we define a custom factory and move some of the initialization from the _main_ block to the factory.
在这个示例中,我们定义了一个定制工厂,并将一些初始化代码从_ main _块移到了该工厂。
应用推荐