上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: var p={ age:20};function Person(name,sex){ console.log(this); console.log(this.age); console.log(name,sex)}Function.prototype.bindy=function(context){ 阅读全文
posted @ 2020-09-03 17:15 菜鸟程序员的总结 阅读(401) 评论(0) 推荐(0)
摘要: 可以自定义列数和间距 代码存放地址: https://github.com/doujiangtao/Waterfallsflow/ 阅读全文
posted @ 2020-09-03 13:19 菜鸟程序员的总结 阅读(160) 评论(0) 推荐(0)
摘要: /* 发送效果 */ .icon { width: 1em; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; } #send_btn button { background: #5f55af; b 阅读全文
posted @ 2020-08-31 15:45 菜鸟程序员的总结 阅读(1431) 评论(0) 推荐(0)
摘要: function type(target){ var ret=typeof(target); //引用值类型可以判断是数组,对象还是包装类 var template={ "[object Array]":"array", "[object Object]":"object", "[object Nu 阅读全文
posted @ 2020-08-21 17:01 菜鸟程序员的总结 阅读(355) 评论(0) 推荐(0)
摘要: 1、新建utils文件夹,在文件夹里面新建reques.js import axios from 'axios'; import { Message, Loading } from 'element-ui' import qs from 'qs'; //参数序列化,把数据格式转为 x-www-for 阅读全文
posted @ 2020-08-15 13:42 菜鸟程序员的总结 阅读(2615) 评论(0) 推荐(0)
摘要: // 封装一个方法能够在元素后面插入dom元素 (在原型链上编程) <div> <span></span> <p></p> <strong></strong> <i></i> <address></address> </div> Element.prototype.insertAfter=funct 阅读全文
posted @ 2020-08-08 09:53 菜鸟程序员的总结 阅读(233) 评论(0) 推荐(0)
摘要: function getStyle(ele,prop){ if(window.getComputedStyle){ //w3c标准 return window.getComputedStyle(ele,null)[prop]; }else{//ie低版本 return ele.currentStyl 阅读全文
posted @ 2020-08-08 09:27 菜鸟程序员的总结 阅读(268) 评论(0) 推荐(0)
摘要: 对给定的内容进行小驼峰式转换 var reg=/-(\w)/g; var str="the-first-name"; str=str.replace(reg,function($,$1){ return $1.toUpperCase(); }) console.log(str) // theFirs 阅读全文
posted @ 2020-08-08 09:08 菜鸟程序员的总结 阅读(219) 评论(0) 推荐(0)
摘要: function retSibling(e,n){ while(e && n){ if(n>0){ if(0 && e.nextElementSibling){ e=e.nextElementSibling; }else{ for(e=e.nextSibling;e && e.nodeType!=1 阅读全文
posted @ 2020-08-05 16:57 菜鸟程序员的总结 阅读(197) 评论(0) 推荐(0)
摘要: 对于node每次改写完代码都需要重启才能更新很是麻烦推荐大家用nodemon这个依赖就可以很好的解决了 npm install -g nodemon 阅读全文
posted @ 2020-07-30 10:00 菜鸟程序员的总结 阅读(549) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页