<div class="dadian_i_i_news_text" v-html="reMove(item.content)"></div> reMove: function(content) { return content.replace(/<\/?[^>]*>|(\n|\t|\r)|(\s)/ ...
分类:
其他好文 时间:
2020-07-26 00:14:59
阅读次数:
62
gulpfile.js gulp.task('watch', function () { gulp.watch('./css/*.css',['css']); gulp.watch('./html/*.html',['html']); gulp.watch('./image/*.*',['image ...
分类:
其他好文 时间:
2020-07-26 00:14:30
阅读次数:
75
对象的创建方法 1.字面量法 var obj={ name:“zzz” way:function(){} } 2.构造函数:var obj =new Object() obj.name="zzz" obj.way=function(){} 3.自定义构造函数:(严格按照大驼峰式命名规则) funct ...
分类:
其他好文 时间:
2020-07-26 00:11:04
阅读次数:
49
vue.js入门开发 vue {{}} 双向数据绑定 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-s ...
分类:
Web程序 时间:
2020-07-26 00:05:48
阅读次数:
75
typeof()返回六种数据类型(全是字符串) number string Boolean undefined object function object:对象,数组,null 早期null是用来给对象占位的 所以null返回时object 当变量没定义就使用系统会报错但是在typeof里面使用除 ...
分类:
其他好文 时间:
2020-07-25 23:52:35
阅读次数:
64
更原理性的东西 https://www.cnblogs.com/jyybeam/p/13200403.html 以下是简单的理解 prototype是函数特有的属性,是Function的静态属性;__proto__是对象特有的属性。 因为函数本身是一种对象,所以函数既有prototype属性也有__ ...
分类:
其他好文 时间:
2020-07-25 23:45:00
阅读次数:
71
在一些网页中我们可以常见的“设置为首页”和“ 收藏本站”,以及“保存到桌面”等功能,使用js是如何实现的呢?这里为大家分享下实现方法,完美兼容IE,chrome,ff等浏览器。JS代码: <script type="text/JavaScript"> //设为首页 function SetHome( ...
分类:
其他好文 时间:
2020-07-25 23:43:15
阅读次数:
71
ES6中一共12个数据类型,分为两类,每类6个 基本数据类型 → 栈 (6个) string number boolean null undefined Symbol(es6) 引用数据类型 → 堆(6个) array object function data Set(es6) Map(es6) 1 ...
分类:
Web程序 时间:
2020-07-25 23:39:09
阅读次数:
90
package LeetCode_283 /** * 283. Move Zeroes * https://leetcode.com/problems/move-zeroes/description/ * * Given an array nums, write a function to move ...
分类:
其他好文 时间:
2020-07-25 09:55:29
阅读次数:
69
<script> var s=""; function f() { for (i=100;i<1000;i++){ //取得数字:个位 十位 百位 var a=i%10; //个位 var c=parseInt(i/100); //百位-获取整数 var b=parseInt(i/10)%10; / ...
分类:
Web程序 时间:
2020-07-24 21:53:16
阅读次数:
91