js代码
<script type="text/javascript" src="dist/canvi.js"></script> <script> var t = new Canvi({ content: ".js-canvi-content", isDebug: !1, navbar: ".myCanvasNav", openButton: ".js-canvi-open-button--left", position: "left", pushContent: !1, speed: "0.2s", width: "100vw", responsiveWidths: [ { breakpoint: "600px", width: "280px" }, { breakpoint: "1280px", width: "320px" }, { breakpoint: "1600px", width: "380px" } ] }) </script> <script type="text/javascript"> var canviRight = new Canvi({ content: '.js-canvi-content', navbar: '.js-canvi-navbar--right', openButton: '.js-canvi-open-button--right', position: "right" }); </script>