码迷,mamicode.com
首页 >  
搜索关键字:step return    ( 64763个结果
Vue 路由组件传参的 8 种方式
我们在开发单页面应用时,有时需要进入某个路由后基于参数从服务器获取数据,那么我们首先要获取路由传递过来的参数,从而完成服务器请求,所以,我们需要了解路由传参的几种方式,以下方式同 vue-router@4。 编程式路由传参 除了使用 <router-link> 创建 a 标签来定义导航链接,我们还可 ...
分类:其他好文   时间:2021-06-02 10:30:53    阅读次数:0
6-20 位密码交验正则
/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:其他好文   时间:2021-05-25 18:31:40    阅读次数:0
c语言求输入的任一整数的各位数之和
源码: # include<stdio.h> int main(void){int a,i=0,sum=0;scanf("%d",&a);if(a<0) a=-a;//求负整数的while(a){sum+=(a%10);//sum存各位数之和a/=10;}printf("各位数字之和为:%d\n", ...
分类:编程语言   时间:2021-05-25 18:29:36    阅读次数:0
#define 连接字符串
define连接字符串 #define conn(x,y) x##y,连接x与y #define toString(x) #x,将x变成字符串 #include <stdio.h> #define conn(x,y) x##y #define toChar(x) #x int main(void) ...
分类:其他好文   时间:2021-05-25 18:17:24    阅读次数:0
Javascript 浮点数
在复习归并排序的时候,使用到了递归,我一直以为是递归函数没写对,导致了Maximum call stack size exceeded 栈溢出,但是其实是JavaScript浮点数的自动转换的问题! function sort(arry,left,right){ if(left right){ re ...
分类:编程语言   时间:2021-05-25 17:48:06    阅读次数:0
JavaFx TableView 文本换行
TableView 的TableColumn有文本换行的需求。 方法如下: @FXML private TableColumn nameCol; nameCol.setCellValueFactory(new PropertyValueFactory<>("name")); //姓名 初始化name ...
分类:编程语言   时间:2021-05-25 17:45:25    阅读次数:0
O(logn)最长上升子序列并输出
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:其他好文   时间:2021-05-25 17:36:48    阅读次数:0
htmlToTex
public htmlToText(html: string) { return html .replace(/<br>/g, '') .replace(/<p>/g, '') .replace(/<\/p>/g, '') .replace(/<\s*b[^>]*>/g, '') .replace( ...
分类:Web程序   时间:2021-05-24 17:18:14    阅读次数:0
将url下载到本地
const axios=require('axios') const fs = require('fs-extra'); const https=require('https') const path=require('path') function resolve (dir) { return p ...
分类:Web程序   时间:2021-05-24 17:11:19    阅读次数:0
Spring boot 打jar包启动后无法正常扫描class的问题(Idea直接运行正常)
import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.Resource; import org.springframework.core ...
分类:编程语言   时间:2021-05-24 17:06:24    阅读次数:0
64763条   上一页 1 ... 23 24 25 26 27 ... 6477 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!