上一页 1 2 3 4 5 6 ··· 28 下一页
摘要: <div class="constant-width-to-height-ratio"></div> .constant-width-to-height-ratio { background: #9C27B0; width: 50%; } .constant-width-to-height-rati 阅读全文
posted @ 2021-08-27 12:01 jzfan 阅读(40) 评论(0) 推荐(0) 编辑
摘要: const path = new URL(`../assets/blogPhotos/${name}.jpg`, import.meta.url); Vue 3使用vite 2.0 动态引入加载图片 阅读全文
posted @ 2021-08-24 17:00 jzfan 阅读(816) 评论(0) 推荐(0) 编辑
摘要: function smartPromise(promise){ return promise.then(res=>([null,res])).catch((e)=>([e,null])); } async function task(){ const [errorA,fileA] = await s 阅读全文
posted @ 2021-03-25 18:36 jzfan 阅读(55) 评论(0) 推荐(0) 编辑
摘要: Object.assign(this.$data, this.$options.data()) this.message = this.$options.data().message 阅读全文
posted @ 2021-02-01 09:57 jzfan 阅读(47) 评论(0) 推荐(0) 编辑
摘要: <script> import { Select, Option } from 'element-ui' export default { props: { options: { type: Array, default: () => [], }, value: {}, }, render(h) { 阅读全文
posted @ 2021-01-26 09:28 jzfan 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 安装 npm init -y npm i webpack webpack-cli -D mkdir src touch ./src/index.js touch ./webpack.config.js css-loader npm install style-loader css-loader -D 阅读全文
posted @ 2020-11-30 17:00 jzfan 阅读(102) 评论(0) 推荐(0) 编辑
摘要: function accAdd(arg1, arg2) { var r1, r2, m; try { r1 = arg1.toString().split(".")[1].length; } catch (e) { r1 = 0; } try { r2 = arg2.toString().split 阅读全文
posted @ 2020-11-13 10:49 jzfan 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 卸载旧的版本 sudo apt-get autoremove php7* sudo find /etc -name "*php*" |xargs sudo rm -rf 更新源 sudo add-apt-repository ppa:ondrej/php sudo apt-get update 安装 阅读全文
posted @ 2020-11-05 17:51 jzfan 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 取整 var a = ~~2.33 //(四舍五入) var b= 2.55 | 0//上取整 var c= 2.33 >> 0//下取整 金钱格式化:1234567890 --> 1,234,567,890 var test1 = '1234567890' var format = test1.r 阅读全文
posted @ 2020-10-12 14:17 jzfan 阅读(125) 评论(0) 推荐(0) 编辑
摘要: function groupBy( array , id ) { let groups = {}; array.forEach( function( o ) { let group = JSON.stringify( o[id] ); groups[group] = groups[group] || 阅读全文
posted @ 2020-09-23 11:04 jzfan 阅读(419) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 28 下一页