码迷,mamicode.com
首页 >  
搜索关键字:A component require    ( 12084个结果
react-调用函数this丢失问题
调用事件处理函数,this指向函数,this不是指向实例,解决这个问题就是给调用函数时bind(this)改变this指向或者使用箭头函数 1、bind改变this指向 export default class Home extends Component { constructor(){ supe ...
分类:其他好文   时间:2020-08-24 16:37:47    阅读次数:49
【Angular02】一些 angular 看这儿就行了
1. 一些概念: (1)元数据:描述的是装饰器 其实就是属性,比如 @Component 这个修饰器的元数据就是: selector、templateUrl、providers @Component({ selector: 'app-hero-list', templateUrl: './hero- ...
分类:其他好文   时间:2020-08-19 19:25:24    阅读次数:61
shaderlab-13chapter
##13.1原理: 深度纹理,存储的不是颜色值,而是一个高精度的深度值[0,1] - 归一化的设备坐标(Normalized Device Coordinates,NDC) 精度(24or16位) 1)使用延迟渲染时,G-buffer中直接可得。2)否则通过单独的pass,unity使用Shader ...
分类:其他好文   时间:2020-08-18 14:01:47    阅读次数:67
杂项 ----模板引擎(补充)
template是一个模板引擎 使用: 1.简单使用 // 导入模板引擎模块 const template = require('art-template'); // 将特定模板与特定数据进行拼接 1 const html = template('./views/index.art',{ 2 dat ...
分类:其他好文   时间:2020-08-18 14:01:01    阅读次数:70
css 背景图片路径问题
背景图片路径找寻失败问题 1、加~ background-image: url("~@/assets/login/login-bg.png"); background-size: 100% 100%; 2、加require <div class="login_content" :style="`ba ...
分类:Web程序   时间:2020-08-17 17:10:57    阅读次数:136
vue.extend和vue.component的区别
vue.extend 使用基础 Vue 构造器函数,通过原型继承,(返回)创建一个“子类”(构造器)。参数是一个包含组件选项的对象。 const Sub = function VueComponent (options) { this._init(options) } Sub.prototype = ...
分类:其他好文   时间:2020-08-15 23:59:41    阅读次数:139
创建VueUI组件库并发布在npm
1.安装vue环境创建项目,注册npm账号 npm install -g @vue/cli vue create mste-component https://www.npmjs.com/signup //npm账号注册地址 npm add user//或者命令行注册,按照提示依次输入 注:请注意你 ...
分类:其他好文   时间:2020-08-10 16:11:03    阅读次数:61
kubeadm安装单机版
机器准备环境信息机器名称内外IP外网IP操作系统k8s版本docker版本master0110.0.0.106192.168.1.9CentOSLinuxrelease7.8.2003v1.15.218.09.7node0110.0.0.107192.168.1.11CentOSLinuxrelease7.8.2003v1.15.218.09.7node0210.0.0.108192.168.1.
分类:其他好文   时间:2020-08-10 11:05:37    阅读次数:77
angular 路由跳转以及传参的几种方式
通过域名跳转的方式获取参数(http://localhost:4200/second/110?productId=1&title=moon) 这种方式配置路由,其中:id是必需的参数,其它的是可配的,写在?后面: { path: 'second/:id', component: SecondComp ...
分类:其他好文   时间:2020-08-08 17:39:31    阅读次数:110
Spring 注解编程之模式注解
阅读本文大概需要5.5分钟。Spring框架中有很多可用的注解,其中有一类注解称模式注解(StereotypeAnnotations),包括@Component,@Service,@Controller,@Repository等。只要在相应的类上标注这些注解,就能成为Spring中组件(Bean)。需要配置开启自动扫描。如在XML中配置`或使用注解@ComponentScan。从最终的效果上来看,
分类:编程语言   时间:2020-08-07 21:48:17    阅读次数:90
12084条   上一页 1 ... 39 40 41 42 43 ... 1209 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!