上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 方案 let table = document.querySelector("body"); if (table) { table.setAttribute("style", "background-color:#f7f7f7"); } // document // .querySelector(" 阅读全文
posted @ 2021-02-05 15:18 少年。 阅读(1726) 评论(0) 推荐(0)
摘要: 1.安装 $ npm install --save nprogress $ yarn add nprogress 2.使用 App.vue <script lang="ts"> import NProgress from "nprogress"; import "nprogress/nprogres 阅读全文
posted @ 2021-02-05 15:16 少年。 阅读(452) 评论(0) 推荐(0)
摘要: 安装组件 npm install vue-quill-editor -S 组件挂载 有两种挂载方式: 全局挂载 和 在组件中挂载,根据自己的项目需求选择,一般用到富文本编辑都是在某一个项目中 全局挂载 // main.js import Vue from 'vue' import VueQuillE 阅读全文
posted @ 2021-02-05 15:15 少年。 阅读(397) 评论(0) 推荐(0)
摘要: 新建index.js import Vue from "vue"; /** * 回到顶部功能实现过程: * 1. 获取页面当前距离顶部的滚动距离(虽然IE不常用了,但还是需要考虑一下兼容性的) * 2. 计算出每次向上移动的距离,用负的滚动距离除以5,因为滚动的距离是一个正数,想向上移动就是做一个减 阅读全文
posted @ 2020-12-01 18:30 少年。 阅读(922) 评论(0) 推荐(0)
摘要: 下载tff格式的字体 assets中新建文件夹fonts,把tff字体文件放在fonts,并在assets/css中新建font.css @font-face { font-family: "Acy"; src: url('../fonts/Acy.ttf') format('truetype'); 阅读全文
posted @ 2020-11-26 16:23 少年。 阅读(643) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { int[] scores = new int[5]; int i, j; // 循环变量 int temp; // 临时变量 // 读入成绩 Console.WriteLine("请输入5个学员的成绩 阅读全文
posted @ 2020-11-26 15:43 少年。 阅读(297) 评论(0) 推荐(0)
摘要: 正方形 #square { width: 100px; height: 100px; background: red; } 长方形 #rectangle { width: 200px; height: 100px; background: red; } 圆形 #circle { width: 100 阅读全文
posted @ 2020-11-26 10:40 少年。 阅读(329) 评论(0) 推荐(0)
摘要: 下载地址:[CSkin](http://www.cskin.net/) 博客地址:[kin](http://bbs.cskin.net/) ### 使用步骤 1.工具箱右键-新建项-命名CSkin。 2.将CSkin.dll拖到新建的工具箱栏里。 3.控件添加完毕,控件拖拽到界面即可使用和引用。 4 阅读全文
posted @ 2020-11-26 09:18 少年。 阅读(1446) 评论(1) 推荐(0)
摘要: public class LibWrapDateTime { [DllImportAttribute("Kernel32.dll")] public static extern void GetLocalTime(SystemTime st); [DllImportAttribute("Kernel 阅读全文
posted @ 2020-11-26 09:13 少年。 阅读(998) 评论(0) 推荐(0)
摘要: ### 扩展声明 扩展方法它可以让我们在不修改原始类的情况下,为其添加新的方法。 并不是任何方法都能作为扩展方法使用 , 必须具有以下特征: 它必须在一个非嵌套的、非泛型的静态类中(所以必须是一个静态方法) 至少要有一个参数; - 第一个参数必须是要扩展的类型,使用this关键字进行标记 - 第一个 阅读全文
posted @ 2020-10-27 16:32 少年。 阅读(277) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页