原创 小程序全局配置、頁面配置參數說明

摘自微信小程序官方文檔:https://developers.weixin.qq.com/miniprogram/dev/framework/config.html#全局配置 全局配置 屬性 類型 必填 描述 支持版本

原创 小程序註冊程序,註冊頁面參數說明

摘自微信小程序開發官方文檔:https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/app.html 1.註冊程序 App(Object) Ap

原创 gulp實現開發生產版本,自動添加版本號爲參數格式

github地址:https://github.com/xiangxingliyan/gulp-automated-build-project gulpfile.js //引入gulp及各種組件; 'use strict'; var

原创 ECMAScript 5中的數組方法

ECMAScript 5中的數組方法(摘自javascript權威指南) forEach(): 沒有for循環的break語句,不能終止遍歷,只能通過try{}catch{}拋出異常終止 //三個參數: 數組元素、元素索引,數

原创 css3 實現Loading加載動畫

css3 實現加載動畫 .loading_animation { border: 2px solid #e10b0b; border-bottom-color: transparent; border-left-c

原创 JavaScript let的理解

1.簡化內部函數代碼 當用到內部函數的時候,let會讓你的代碼更加簡潔。 var list = document.getElementById('list'); for (let i = 1; i <= 5; i++) { let

原创 JavaScript閉包常見錯誤:在循環中創建閉包

1.錯誤示例 <p id="help">Helpful notes will appear here</p> <p>E-mail: <input type="text" id="email" name="email"></p> <p>Na

原创 Magento2 引入外部js文件

1.創建web/js目錄: app/design/frontend/own_Namespace/own_Module/web/js/own_name.js 2.創建或修改requirejs-config.js: app/design/fr

原创 Math ceil()、floor()、round()方法

Tags:JavaScript Math ceil()、floor()、round()方法 Math.ceil() 功能:對一個數進行上取整。 語法:Math.ceil(x) 參數: x:一個數值。 返回值:返回大於或等於x,並且

原创 css利用after解決菜單欄,彈出層雙陰影重疊問題

css 利用after .custom_nav_list li:first-child:hover > a:after { content: ''; background: rgb(255, 255, 255);

原创 Magento2添加麪包屑代碼

以購物車爲例 1.創建以下文件 app/design/frontend/vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml 2.並在checkout_cart_in

原创 magento2自定義添加.html文件

工作解決方案 只需從下面的路徑創建或編輯requirejs-config.js文件即可。 /app/code/Namespace/Module/view/frontend/requirejs-config.js 並將代碼放置在requ

原创 Magento2 購物車添加頭部尾部

在Magento 2.1(.1)中,徽標被移到了/vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml它的正常位置checkout.hea

原创 Magento2自定義xml文件

magento 2中的自定義佈局文件覆蓋系統主題佈局文件 1.創建了一個自定義模塊xml文件 app/code/Learning/RewriteSales/view/adminhtml/layout/sales_order_view.xm

原创 $.each()迭代jQuery和非jQuery對象 .each()方法

迭代jQuery和非jQuery對象 jQuery提供了一個對象迭代器實用程序.each()以及一個jQuery集合迭代器.each()。這些不可互換。另外,還有一些有用的方法可以調用 .map(),.map()這可以使我們常用的迭代用