$(document).ready(function() { var index = $(".picScroll ul li[class='on']").index; var oPic = $('.picScroll').find('ul'); var len = $(".picScroll ul ...
分类:
Web程序 时间:
2020-07-26 01:07:18
阅读次数:
107
<?php check_code(100, 50, 5); function check_code($width = 100, $height = 50, $num = 4, $type = 'jpeg') { $img = imagecreate($width, $height); $string ...
分类:
Web程序 时间:
2020-07-26 00:27:33
阅读次数:
76
前边有简单介绍过基于json-fn 解析处理json function 的,以下是一个整理 json.parse 的签名 JSON.parse(str, reviver) 解决说明 我们可以基于reviver 处理function 处理的方法 通过evel 以及Function 对象 参考方法 re ...
分类:
Web程序 时间:
2020-07-26 00:18:59
阅读次数:
108
<?php water('upload/images/202007250204199.jpg', 'upload/images/202007250155160.jpg'); function water($durl, $surl) { $dit = imagecreatefromjpeg($durl ...
分类:
Web程序 时间:
2020-07-26 00:18:27
阅读次数:
86
记忆化递归 记忆化是一种保存前一个结果的值的优化技术,类似于缓存。 function fibonacciMemoization(n) { const memo = [0, 1, 1] if (n < 1) return 0 if (n <= 2) return memo[n] const fibon ...
分类:
其他好文 时间:
2020-07-26 00:18:08
阅读次数:
73
<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