码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
axios的封装 和拦截器的使用
import axios from "axios"; //第一种方式 export function request(config,success,failure) { const instance = axios.create({ baseURL:"http://123.207.32.32:800 ...
分类:移动开发   时间:2021-02-18 12:52:38    阅读次数:0
js 数据类型相关?
一、数据类型 1、基础类型:null,undefined,string,number,boolean,bigint,symbol; 2、引用类型:object,array等都算是引用类型; 二、两种类型之间的区别 1、基础类型:存储在栈内存中,大小固定,方便快速查找; 2、引用类型:存储在堆内存中, ...
分类:Web程序   时间:2021-02-17 14:00:59    阅读次数:0
js 对象高级
对象的创建模式 Object构造函数模式 var obj = {}; obj.name = 'Tom' obj.setName = function(name){this.name=name} 对象字面量模式 var obj = { name : 'Tom', setName : function( ...
分类:Web程序   时间:2021-02-16 12:40:05    阅读次数:0
web前端自定义函数工具库
1、call函数封装实现 // 手写call函数 function call(Fn,obj,...arg){ // 如果obj为null或者undefined,则指向window if(obj undefined || obj null){ // globalThis是ES11的新特性,指向全局 o ...
分类:Web程序   时间:2021-02-16 12:28:26    阅读次数:0
jquery的扩展:编写好代码封装起来供他人使用
知识点在:《 html5 app 应用开发教程》第209页 jQuery的扩展可分为两类 1: jquery全局函数的扩展语法的定义:$.extend({ 定义的函数名:function(){}}) 语汇的调用:onclick="$.函数名()" 2: jquery对象的扩散 1: jquery全局 ...
分类:Web程序   时间:2021-02-16 12:19:06    阅读次数:0
Javascript中将函数参数arguments转为数组
1. arguments为什么不是数组?如何证明? arguments 是没有数组的slice等方法的,所以不是Array类型的。 验证: function testargs(){ var arr=[1,2,3]; console.log(typeof arguments.slice); conso ...
分类:编程语言   时间:2021-02-16 12:13:02    阅读次数:0
0242. Valid Anagram (E)
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:其他好文   时间:2021-02-15 12:41:17    阅读次数:0
Vue复习六(vue-cli/axios)
基础 axios.get('/user?ID=12345') .then(function (response) { // 成功 console.log(response); }) .catch(function (error) { // 失败 console.log(error); }) .the ...
分类:移动开发   时间:2021-02-15 12:39:12    阅读次数:0
获取本地ip
在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:其他好文   时间:2021-02-15 12:33:49    阅读次数:0
Delphi - 生成GUID
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
分类:Windows程序   时间:2021-02-15 12:21:06    阅读次数:0
54714条   上一页 1 ... 44 45 46 47 48 ... 5472 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!