上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: //定义类 function Graph(v){ this.vertices = v; //顶点 this.vertexList = []; this.edges = 0; this.adj = []; for(var i=0;i<this.vertices;++i){ this.adj[i] = 阅读全文
posted @ 2022-01-25 11:17 6NULL9 阅读(47) 评论(0) 推荐(0)
摘要: <style type='text/css'> * { margin: 0; padding: 0; } .container { display: flex; min-height: 100vh; perspective: 800px; background: #000; touch-action 阅读全文
posted @ 2021-10-30 15:59 6NULL9 阅读(655) 评论(0) 推荐(0)
摘要: //范例 var base = 'src/'; ///项目根目录 var dist = 'dist/';// 输出目录 /// 压缩html的选项 var minHtmlOption = { collapseWhitespace: true, collapseBooleanAttributes: t 阅读全文
posted @ 2021-10-28 15:43 6NULL9 阅读(58) 评论(0) 推荐(0)
摘要: 常见class关键词: 布局类:header, footer, container, main, content, aside, page, section 包裹类:wrap, inner 区块类:region, block, box 结构类:hd, bd, ft, top, bottom, lef 阅读全文
posted @ 2021-10-23 20:33 6NULL9 阅读(157) 评论(0) 推荐(0)
摘要: change <!doctype html> <html> <head> <meta charset="utf-8"> <title>HTML5 Canvas粒子文字特效 - A5源码</title> <style> body,html { margin:0; width:100%; overflo 阅读全文
posted @ 2021-08-27 15:27 6NULL9 阅读(234) 评论(0) 推荐(0)
摘要: winResize() function winResize() { // var oHeight=$(window).height(); $(window).resize(function () { //当浏览器大小变化时 var // newHeight = $(window).height() 阅读全文
posted @ 2021-06-28 17:00 6NULL9 阅读(808) 评论(0) 推荐(0)
摘要: var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); var image = new Image(); image.src = "dragon.jpg"; image.onload = f 阅读全文
posted @ 2021-05-19 14:38 6NULL9 阅读(263) 评论(0) 推荐(0)
摘要: 今天第一次碰到了contains()方法,处于好奇了解了一下;发现在某些场合还是挺有用的。 contains(),js原生方法,用于判断DOM元素的包含关系; 需要注意的是:它以HTMLElement为参数,且返回布尔值。 另外:最近在看element-ui源码的时候发现它内置的clickOutsi 阅读全文
posted @ 2021-05-08 14:38 6NULL9 阅读(298) 评论(0) 推荐(0)
摘要: steps() 是 animation-timing-function 的属性值 animation-timing-function : steps(number[, end | start]) steps 函数指定了一个阶跃函数,它接受两个参数 第一个参数接受一个整数值,表示两个关键帧之间分几步完 阅读全文
posted @ 2021-04-28 23:07 6NULL9 阅读(676) 评论(0) 推荐(0)
摘要: // watch 简单应用 watch(data, () => { document.title = 'updated ' + data.count }) // watch 的两个参数,代表新的值和旧的值 watch(refData.count, (newValue, oldValue) => { 阅读全文
posted @ 2021-04-28 00:15 6NULL9 阅读(120) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 18 下一页