use Illuminate\Support\Facades\Input; //引入Input类 public function index(){ if($_POST){ var_dump(Input::get('title','123456')); } Input::get('参数名','如果参数 ...
分类:
其他好文 时间:
2020-07-28 13:58:35
阅读次数:
79
/* 求解数列1+1/(1+2)+1/(1+2+3)+...... */ #include <stdio.h> double fun(int n){ double s=0; int i,a=0; for(i=1;i<=n;i++){ a=a+i; s=s+1.0/a; } return s; } i ...
分类:
其他好文 时间:
2020-07-27 23:48:05
阅读次数:
74
数组对象去重 准备数据 var arr = [{ "CompanySerial": "123", "id": "1", "number": 2, }, { "CompanySerial": "456", "id": "1", "number": 2 }, { "CompanySerial": "78 ...
分类:
编程语言 时间:
2020-07-26 23:23:50
阅读次数:
116
写到到数据库的模型 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace ...
<script type="text/javascript"> function* myGenerator(){ console.log('业务逻辑A') let result=yield 'hello' console.log(result) console.log('业务逻辑B') yield ...
分类:
其他好文 时间:
2020-07-26 15:13:08
阅读次数:
51
gulpfile.js const gulp = require('gulp'); const cssnano = require('gulp-cssnano'); const sass = require('gulp-sass'); const rename = require('gulp-ren ...
分类:
其他好文 时间:
2020-07-26 01:14:27
阅读次数:
91
前言 vue通信手段有很多种,props/emit、vuex、event bus、provide/inject 等。还有一种通信方式,那就是 $attrs 和 $listeners,之前早就听说这两个api,趁着有空来补补。这种方式挺优雅,使用起来也不赖。下面例子都会通过父、子、孙子,三者的关系来说 ...
分类:
其他好文 时间:
2020-07-26 00:35:59
阅读次数:
70
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Vue点击列表切换 ...
分类:
其他好文 时间:
2020-07-26 00:16:18
阅读次数:
69
<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