ICode9

精准搜索请尝试: 精确搜索
  • 第一次上传代码到Git出现的问题2021-09-25 19:34:01

    fatal: not a git repository (or any of the parent directories): .git     我第一次上传代码到git,出现上传不了的情况,我处理的情况大致如下: 先创建一个文件夹,先在此文件夹里git init;然后在clone地址(此时没有代码);出现了文件夹后,在进入指定的文件夹,在这个文件夹里git add ., 然

  • 【小白从小学Python、C、Java【Python-计算机等级考试二级】【Python中的all()与any()函数】2021-09-24 09:34:19

    知识精讲 1.all() 函数用于判断给定的对象中的所有元素是否都为“真”,如果是返回 True,如果有“假”,则返回False。 2.any() 函数用于判断给定的对象中的所有元素是否有“真”,如果是则返回 True,如果全部为“假”,则返回 False。 3.元素除了 0、空、False 外都算为“真”。选择题 以

  • ts中引入js文件以及使用全局js方法报错问题2021-09-18 09:58:19

    ts中引入js报错 一、 无法找到模块“@/xxx/xxx”的声明文件。“xxx.js”隐式拥有 “any” 类型。 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Txigu319-1631930149705)(C:\Users\oyzq\AppData\Roaming\Typora\typora-user-images\1631929576599

  • TcpConnection的上下文2021-09-17 16:04:49

    #20210917 TcpConnection的上下文 如有问题,欢迎交流! 上下文 相关API: void TcpConnection::setContext(const boost::any& context) {context_ = context;} boost::any* TcpConnection::getContext() const {return context_} 解释: 用于记录本次和本次连接密切相关的信

  • mysql 查找分组后各组第一条数据2021-09-15 11:07:01

    参考了 https://blog.csdn.net/wd_9012/article/details/115692127 https://www.cnblogs.com/deepalley/p/13602825.html 但是没有一个唯一值的字段来排序怎么办?? 正解是使用mysql 中的 any_value() 方法 select name,any_value(age) from table group by name

  • Typescript接口2021-09-14 22:06:10

    interface接口 interface Person { readonly id: number; // 只读属性,但是在初始化之后不能重新赋值,否则会报错 name: string; // 必选属性 age?: number; // 可选属性,表示不是必须的参数 [propName: string]: any; // 额外的属性,它的冒号后面必须跟any,否则

  • 我在坑底的typescript手记之几种特殊的变量类型2021-09-12 15:29:49

    1. any any 指的是一个任意类型,它是官方提供的一个选择性绕过静态类型检测的作弊方式。 我们可以对被注解为 any 类型的变量进行任何操作,包括获取事实上并不存在的属性、方法,并且 TypeScript 还无法检测其属性是否存在、类型是否正确。 比如我们可以把任何类型的值赋值给 any

  • vuex store 改造2021-09-11 20:33:19

      state.ts export default { todos:[ {id:1,name:'张三'}, {id:2,name:'李四'}, {id:3,name:'王五'} ] } getters.ts export default { todosCount(state: { todos: string | any[]; }){ return state.todos.length; },

  • 学习TypeScript4这一篇就够了2021-09-10 21:01:12

      推荐视频教程download:    typescript系统入门到项目实战  :  http://www.notescloud.top/goods/detail/1176   再学JavaScriptES全版本语法大全  :  http://www.notescloud.top/goods/detail/1187   开课吧—web前端全栈开发(2020年最新)  :  http://ww

  • npm安装报错Could not find any Visual Studio installation to use2021-09-07 16:31:47

    报错如下: 网上有的解决方法是安装visual Studio, 不过这种情况可以先换yarn安装试一下,我两次碰到都是因为yarn导包的项目我用npm装了。

  • Codeforces Round #739 (Div. 3)--D2021-09-06 17:32:08

    题干: You are given an integer nn. In 11 move, you can do one of the following actions: erase any digit of the number (it's acceptable that the number before the operation has exactly one digit and after the operation, it is "empty"); add on

  • Oracle知识点(七)--子查询2021-09-05 23:31:37

    子查询 1.定义 也叫内部查询,先于主查询执行。 注意:子查询的结果被主查询使用。 子查询可以嵌入where、having、from子句中。 子查询可以【单独执行】。 2.语句 select list from table where expr operator(select list from table); 3.expr operato操作符 expr operato包括

  • Gin Any方法路由2021-08-29 13:02:55

    package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { router := gin.Default() router.Any("/", func(ctx *gin.Context) { switch ctx.Request.Method { case http.MethodGet: ctx.JSON(http.StatusO

  • numFormat2021-08-26 12:02:39

    export const numFormat = function (num: any = 0): any { let isFS: boolean = false; if (num.toString().startsWith('-')) { isFS = true; num = num.toString().substring(1); } num = num.toString().split(".");

  • TypeScript--类型声明2021-08-22 22:00:40

    类型声明 类型声明是 TS 中非常重要的一个特点,通过类型声明可以指定 TS 中变量(参数、形参)的类型。指定类型后,当为变量赋值时,TS 编译器会自动检查值是否符合类型声明,符合则赋值,不符合则报错。 语法: let 变量: 类型 let 变量: 类型 = 值 function fn(参数: 类型, 参数: 类型): 返

  • ts 如何添加prototype 属性2021-08-19 14:32:40

    如前文所示,在对应的index.d.ts/index.d.tsx中添加如下代码:   interface Function { _toFixed(params: any): void; } Function.prototype._toFixed = function(params: any) { this.apply(this, params); };   然后在index.ts/index.tsx中正常声明即可: bigNumber._toFix

  • Linux创建Oracle数据库实例&dmp导入、导出2021-08-17 16:03:57

    创建的ORACLE的SID #切换到oracle用户环境 su - oracle #本次创建的ORACLE的SID为UMCISC export ORACLE_SID=UMCISC #打印当前ORACLE的SID echo $ORACLE_SID UMCISC 创建相应目录 #将UMCISC换成自己的SID mkdir -p $ORACLE_BASE/admin/UMCISC/{a,b,c,u}dump mkdir -p $ORACLE_B

  • element-ui中Table可编辑单元格,选中获取焦点,失去焦点不可编辑2021-08-11 10:31:49

    <template> <el-table ref="editabletable" v-loading="loading" element-loading-text="加载中" :data="dataSource" current-row-key="id" :header-cell-style="{background:'

  • 自建DNS2021-08-08 23:33:29

    自建DNS服务 采用bind9,作为DNS服务。 Debian官方WIKI 安装 apt-get install -y bind9 dnsutils 配置文件 主要的配置文件在下边 options options { directory "/var/cache/bind"; // IPV4的监听端口和地址,127.0.0.1, localhost只能用于本机使用。 listen-

  • 完美解决自定义windows变量打包报错:Property ‘XXX‘ does not exist on type ‘Window‘2021-08-06 04:00:31

    发生情景: 在app中的h5,app注入了全局的window对象和webview里面的页面交互,打包的时候报了错误。 解决方式: 方法一: (window as any).xxx 直接在组件里把window.jigsaw.init({}); 改成 (window as any).jigsaw.init({}); 方法二: declare global { interface Window { xxx: any; }

  • 小程序 canvas type=2d 来做画画板2021-08-04 18:02:38

     组件里的 canvas    <canvas class="handWriting" id="handWriting" canvas-id="handWriting" type="2d" disable-scroll="true" @touchstart="

  • ts 基础2021-08-04 09:06:37

    类型 number 类型 只能是数字boolean 类型 只能是布尔值string类型 字符串any类型 可以是任何类型 ,不建议使用,他可以赋值给其他的类型,而且会改变其他类型unkonwn 未知类型 ,也可以是任何类型,但是他不可以随意赋值 let c:unkonwn; let b:string='hhh'; c='kl' // 未知类型赋值

  • Any-Precision Deep Neural Networks2021-08-03 22:02:15

    文章目录 任意精度深度神经网络3.1 预览3.2 推理3.3 训练 (Training) 4 实验4.2 Comparison to Dedicated Models 任意精度深度神经网络 3.1 预览 神经网络通常是一层一层地构造。 x i

  • typescript 初体验2021-08-03 20:00:06

    typescript 组成: 模块、函数、变量、语句和表达式、注释 第一个typescript 程序: const hello : string = "Hello World!" console.log(hello) 首先通过tsc命令编译 tsc xxx.ts 查看结果 可同时编译多个ts tsc xx1.ts xx2.ts ... 常用编译参数 --help 显示帮助信息 --module 载入

  • get请求多参数循环拼接2021-07-29 18:04:03

    filterParams = {     businessId: '',     deptId: '',     activityName: '',     seekerUserName: '',     accountSet: '',     publishName: '',     settlementTimeStart: '',     settlementTi

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有