码迷,mamicode.com
首页 >  
搜索关键字:scala partial function    ( 60636个结果
应用 |前端限制仅允许指定ip访问页面
封装方法 import axios from 'axios' const allowIP = ['119.133.5.19']; //允许访问 async function getIp() { const res=await axios.get('https://api.ipify.org/')// ...
分类:其他好文   时间:2021-06-28 18:55:02    阅读次数:0
electron 截图,两种方式:desktopCapturer.getSources 与 navigator.mediaDevices.getUserMedia
1 // In the renderer process. 2 3 import { desktopCapturer } from 'electron'; 4 import { screen } from '@electron/remote'; 5 6 export async function c ...
分类:其他好文   时间:2021-06-28 18:51:50    阅读次数:0
PHP循环求和--计算s=100+101+...+999的奇数之和
1 <?php 2 $s=0; 3 for($i=100;$i<=999;$i++){ 4 if($i%2==1){ 5 $s+=$i; 6 } 7 } 8 echo $s; 9 echo "<br>"; 10 ?> 1 function getQ($num, $sum = 0) { 2 $numQ ...
分类:Web程序   时间:2021-06-28 18:50:45    阅读次数:0
SQL解析Json
1 CREATE FUNCTION [dbo].[parseJSON] (@Json NVARCHAR(MAX)) 2 RETURNS @hierarchy TABLE (element_id INT IDENTITY(1, 1) NOT NULL, /* internal surrogate pr ...
分类:数据库   时间:2021-06-28 18:39:44    阅读次数:0
async await Promise多个异步代码互相调用示例
function a1() { return new Promise(o => { console.log("a1") o('a1_1') }) } async function a2() { const _a2 = await a1() console.log(_a2); console.log( ...
分类:其他好文   时间:2021-06-28 17:45:59    阅读次数:0
微信h5支付
export function chooseWXPay(params: wx.ChooseWXPayConfig) { return new Promise<{ status: 'success' | 'error' | 'cancel'; result?: string; message?: st ...
分类:微信   时间:2021-06-28 17:44:33    阅读次数:0
JS:身份证号码校验(仅34行,无冗余精确)
身份证格式 六位数字地址码 + 八位数字出生日期码 + 三位数字顺序码 + 一位数字校验码 checkIdCard.js checkIdCard: function (idCard){ //15位和18位身份证号码的正则表达式 var regIdCard=/^(^[1-9]\d{7}((0\d)|( ...
分类:Web程序   时间:2021-06-25 17:26:41    阅读次数:0
【游戏】基于matlab GUI抽签【含Matlab源码 598期】
一、简介 基于matlab GUI抽签 二、源代码 function varargout = example(varargin) % EXAMPLE M-file for example.fig % EXAMPLE, by itself, creates a new EXAMPLE or raise ...
分类:其他好文   时间:2021-06-25 17:17:35    阅读次数:0
Scala基础语法
Scala-Hello World 目标,在本地启动一个项目,能够输出helloworld https://www.scala-lang.org/ 官网提供的下载安装方式有很多种。 推荐IDE: IDEA 和 VSCode 这里我安装了IDEA,就用了它。 创建scala文件的时候,提示安装Scal ...
分类:其他好文   时间:2021-06-25 17:00:41    阅读次数:0
Scala 原生操作MySQL
Scala 操作MySQL 本地之前安装过MySQL 启动: mysql.server start 停止: mysql.setver stop 登录: mysql -u root ; 登录root用户。 选择一个database : use erwa 查看所有的database: show data ...
分类:数据库   时间:2021-06-25 17:00:08    阅读次数:0
60636条   上一页 1 ... 4 5 6 7 8 ... 6064 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!