码迷,mamicode.com
首页 >  
搜索关键字:component    ( 5606个结果
idea下不能运行main 函数
解决办法: 需要修改.idea/workspace.xml <component name="PropertiesComponent"> <property name="last_opened_file_path" value="$PROJECT_DIR$/../acpp-po" /> <prope ...
分类:其他好文   时间:2020-03-13 18:52:44    阅读次数:169
SpringBoot自动装配
前言:我们知道如果想将我们自己写的类注入IOC容器中只需要打上基础的@Component注解或者是@Configuration注解,但是SpringBoot是怎么加载我们在maven中导入的第三方SDK呢? 一般导入第三方库需要两个步骤: 1. 下载第三方SDK(直接下载,maven,npm,pip ...
分类:编程语言   时间:2020-03-13 18:42:09    阅读次数:68
react 异步的setState
```jsximport React from "react";class App extends React.Component { state = { a: 0 }; componentDidMount() { this.setState({ a: this.state.a + 1 }); co... ...
分类:其他好文   时间:2020-03-13 18:40:00    阅读次数:38
vue 实现滑块验证码
图一为拖拽前效果,图二为拖拽后效果 一、新建文件JcRange.vue,代码如下: 1、模板代码: 1 <template> 2 <div class="jc-component__range"> 3 <div class="jc-range" :class="rangeStatus?'succes ...
分类:其他好文   时间:2020-03-13 12:51:21    阅读次数:546
数据清洗(添加省市区)
利用python为地名匹配省市区, 设计思想:利用百度api实现定位经纬度,然后再通过经纬度匹配省市区 1.从文本中读取地点名称 #提取地区 def diqu(): f = codecs.open('kjcg.txt', mode='r', encoding='utf-8') # 打开txt文件,以 ...
分类:其他好文   时间:2020-03-13 01:14:43    阅读次数:226
Vue style 深度作用选择器 >>> 与 /deep/(sass/less)
传送门:https://vue-loader-v14.vuejs.org/zh-cn/features/scoped-css.html 你很可能会遇到的问题 vue组件编译后,会将 template 中的每个元素加入 [data-v-xxxx] 属性来确保 style scoped 仅本组件的元素而 ...
分类:其他好文   时间:2020-03-12 21:59:02    阅读次数:88
React todolist案例和持久化实现
import React,{Component} from 'react'; import '../assets/css/index.css'; class Todolist extends Component { constructor(props) { super(props); this.st ...
分类:其他好文   时间:2020-03-12 18:33:45    阅读次数:52
Vue路由配置是否含底部导航栏
let barRoute = { path: '/', component: () => import('../view/basicView'), redirect: '/home', children: [ // 带底部导航 ] } let routes = [ barRoute, { name: ...
分类:其他好文   时间:2020-03-12 15:54:46    阅读次数:57
react属性三ref
ref属性:作为接口,向外暴露DOM。非受控组件。(该属性不建议使用) 1 <script type="text/babel"> 2 class MyComponent extends React.Component{ 3 handleClick= ()=>{ 4 console.log(this. ...
分类:其他好文   时间:2020-03-11 23:58:27    阅读次数:131
react数据双向绑定(记录)
class DataBinding extends React.Component { constructor() { super() this.state = { userName: '双向绑定' } } // e.target inputChange = e => { this.setState ...
分类:其他好文   时间:2020-03-11 21:00:11    阅读次数:67
5606条   上一页 1 ... 63 64 65 66 67 ... 561 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!