原创 css not()

input:not([type=checkbox]) { font-size: 16px; width: 100%; height: 48px; padding: 5px 35px 5px 12px;

原创 jquery中使用datepicker限制開始日期小於結束日期

//這是開始日期的操作 $("#endTime").datepicker({ //此處寫自定義的參數操作 如showOtherMonths: true, selectOtherMonths: t

原创 個人vue.config.js文件

const path = require('path') const debug = process.env.NODE_ENV !== 'production' //const VueConf = require('./src/asse

原创 HTML/CSS/JS編碼規範

點此鏈接

原创 jquery獲取元素的所有寬高(包括內邊距和外邊距)

width() - 返回元素的寬度。 height() - 返回元素的高度。 innerWidth() 方法返回元素的寬度(包括內邊距)。                     innerHeight() 方法返回元素的高度(包括內邊距

原创 vue前後端分離解決跨域問題

用Vue-cli腳手架搭建了個demo,前後分離就有跨域問題的出現。 vue-clie搭建demo步驟(傳送門):https://www.cnblogs.com/wangenbo/p/8487764.html 我自己在網上找了2個接口做測

原创 css中僞元素before或after中content的特殊用法attr

1.css  li.volume .item { position: relative; } li.volume .item:after { content: attr(data-content);

原创 wordpress 獲取站點的所有鏈接

<?php include "wp-load.php"; $posts = new WP_Query('post_type=any&posts_per_page=-1&post_status=publish'

原创 Vue插件資源

一、vue官網/資源列表/Awesome Vue(在這裏可以找到一些實用的插件) 1. v-clipboard 將您的模型保存到剪貼板 2. vue-awesome-swiper 輪播組件 二、其它插件 1. better-scroll 

原创 css爲元素添加多張背景圖片

.select_language{ width: 121px; max-width: 100%; background:url("../images/select_black_icon.png") no-r

原创 vue插槽slot的用法

使用場景:父組件向子組件傳遞一些dom元素時 本案例中均以Deatil.vue(父組件) base-layout.vue( 子組件 ) 爲例。 1.老版本的語法 在接下來所有的 2.x 版本中 slot 和 slot-scope特性仍

原创 jquery動態計算menu菜單的高度

1. css .menu_wrapper{ width: 254px; background: #282828; position: fixed; left: 0; top: 0; bot

原创 number類型轉化爲string類型

toString 方法 string = toString(num) 缺點: 不能轉化 underfind 和 null String 方法 string = String(num) 可以轉化 underfind 和 null  

原创 JS計算精度丟失

各大編程語言也都封裝了自己的精確計算庫,Js我選擇使用 math.js 安裝方式 1.包管理器安裝math.js npm install mathjs 2.cdn https://cdnjs.cloudflare.com/ajax/l

原创 vue-cli3 加載 Sass Loader 報錯的解決方案

報錯截圖 如下:  原因是vue-cli版本更新造成的,把vue.config.js文件中的data改爲prependData即可: 修改如下: module.exports = { productionSourceMap: fa