#ace

从字符串总分离文件路径、命名、扩展名,Substring(),LastIndexOf()的使用;替换某一类字符串,Replace()的用法

一:从字符串总分离文件路径、命名、扩展名,上图二:代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSys...

angularJS1笔记-(9)-自定义指令(restrict/template/replace)

index.html:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"></head><body><divng-app="myApp"><custom-tags>...

js正则表达式----replace

1.分组'442665319@qq.com'.replace(/(d+)(@)(w+)(.com)/,'[$1]$2[$3]$4')//"[442665319]@[qq].com"replace第二个参数传一个字符串,而$number是代替第一个参数的分组。这里比较特别的是$number是从$1开始的。 2....

namespace及use的用法

namespace(以下简称ns)。在定义了一个ns之后,下面所申明的class、interface、const(不包含variable)都是在申明的ns这个“域”里面的。当引用一个申明了ns的包含文件,想要调用这个ns里面的东西,那必须调整当前脚本也到此ns域,否则就得用全称()包含ns全称)...
代码星球 代码星球·2020-04-06

vim中delete(backspace)键不能向左删除

MacOS修改为英文语言之后,忽然出现如题问题:delete键不能向左删除,只可以删除本次插入模式下插入的文本。原因: 转载:https://www.smslit.top/2016/11/27/vim-backspace-invalid/ MacOS下打开vim编辑文本,进入插入模式,要删除编辑之前...

Please configure Spring facet or use 'Create Default Context' to add one including all unmapped files.

  有时候我们刚进入IntellijIDEA时会出现这样一个情况,原因是IDEA没有找到spring的配置文件,我们需要添加spring文件给idea管理  参考:1、https://www.jetbrains.com/help/idea/2018.1/spring-support.html?utm...

idea开发工具下报Set language level to 6-@Override in interfaces的解决方法

idea开发工具下报Setlanguagelevelto6-@Overrideininterfaces的解决方法实现接口时报如下错误:Setlanguagelevelto6-@Overrideininterfaces在Java项目中必不可少的是我们要指定一个jdk。在指定jdk的同时,还可以指定jdk的Language...

Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.

AndroidStudio导入Eclipse项目报错Error:Couldnotdeterminetheclass-pathforinterfacecom.android.builder.model.AndroidProject.的解决办法 错误原因:因为Eclipse所使用的ADT插件已经不再更新,所以从E...

Eclipse删除switch workspace下多余的workspace

第一步:修改org.eclipse.ui.ide.prefs文件打开Eclipse目录的configuration.settings目录,找到org.eclipse.ui.ide.prefs文件,将不需要的workspace的路径删除。第二步:重启Eclipse     ...

ajax上传图片报错TypeError: 'append' called on an object that does not implement interface Fo

使用FormData时报错:TypeError:'append'calledonanobjectthatdoesnotimplementinterfaceFormData解决办法:在ajax中加入这两句话就行:   processData:false,   c...

Openface 入门

 背景Openface是一个开源的人脸识别框架,同类软件产品还有seetaface,DeepID等,当然,如果算上商业的产品,那就更多了。Openface人脸比对结果的准确度可能不是很好,它是有待提升的。如果有能力的话,可能通过源码进行优化。一般来说,置信度小于1的基本可以接受的,但是这个要看具体的使用场景,...
代码星球 代码星球·2020-04-06

spring 之 property-placeholder 分析2

其实我们可以完全不使用  context:property-placeholder ,而是使用 PropertySourcesPlaceholderConfigurer: <beanclass="org.springframework.context.suppor...

spring 之 property-placeholder 分析

不难知道,property-placeholder的解析是 PropertyPlaceholderBeanDefinitionParser完成的,但是它仅仅是个parser,它仅仅是读取了location等配置属性,并没有完成真正的解析,及注册。<context:property-placeholder...

spring 之 lookup-method & replaced-method II

显然,lookup-method的name对应的方法是可以有方法参数的,但是,我发现,参数无法传递,传过去的参数好像被丢入了黑洞一般。。。非常奇怪。lookup-method的name即 对应的方法不能是private,也不能是static,这个应该是由cglib某些特性决定的。其返回类型,可以是一个具体类,...

spring 之 lookup-method & replace-method

初始化bean的堆栈:atorg.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$CglibSubclassCreator.instantiate(CglibSubclassingInstantiationStrat...
首页上一页...6162636465...下一页尾页