shopify-cartjs

2018-08-08 admin

shopify-cartjs是什么

什么是shopify-cartjs,A Javascript library to power cart management for Shopify themes.

shopify-cartjs介绍、shopify-cartjs使用

Add Product</button>


### [](#dom-binding-module)DOM Binding Module

In combination with [Rivets.js](http://rivetsjs.com), the DOM Binding module lets you write HTML templates in your `.liquid` files that are re-rendered dynamically when the contents of your cart change, like this:

```text-html-basic
<div data-cart-view>
    You currently have {cart.total_items} item(s) in your cart, for a total of {cart.total_price | money_with_currency}.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-37550.html

文章标题:shopify-cartjs

回到顶部