1,wx.canlUse 用法 boolean wx.canIUse(string schema) 判断小程序的API,回调,参数,组件等是否在当前版本可用 使用 ${API}.${method}.${param}.${option} 或者 ${component}.${attribute}.${o ...
分类:
微信 时间:
2020-06-03 11:58:25
阅读次数:
256
使用Vue.component()创建vue组件 <div id="app"> <test v-for="item in items" v-bind:chl="item"></test>//使用v-bind绑定vue.component中的props否则定义组件无法获取到这个循环值 <!--<li ...
分类:
移动开发 时间:
2020-06-03 09:13:22
阅读次数:
74
1.创建路由CanDeactivate文件 import { CanDeactivate } from "@angular/router"; // import { UserLockComponent } from "../lock/lock.component"; import {UserLock ...
分类:
其他好文 时间:
2020-06-02 18:43:04
阅读次数:
81
装饰者模式(Decorator) 装饰者模式(Decorator):动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。 装饰者模式结构: 抽象构件(Component)角色:给出一个抽象接口,以规范准备接收附加责任的对象。 具体构件(ConcreteComponent)角 ...
分类:
其他好文 时间:
2020-06-02 11:42:00
阅读次数:
47
编写spring的配置文件: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLS ...
分类:
其他好文 时间:
2020-06-01 23:29:30
阅读次数:
61
React使用Echarts报错Component series.line not exists. Load it first.(刚开始正常,后来页面刷不出来,一片空白) 解决 import echarts from 'echarts/lib/echarts'; 改为 import echarts ...
分类:
其他好文 时间:
2020-06-01 20:40:30
阅读次数:
126
官方文档:https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html web-view 属性 类型 默认值 必填 说明 最低版本 src string 否 webview 指向网页的链接。可打开关联的公众号的文章, ...
分类:
微信 时间:
2020-06-01 13:28:26
阅读次数:
329
Vue动态组件 1.component:动态组件放的位置 2.is:绑定动态参数名称的属性和bind联合使用 3.keep-alive:保存当前改变的值 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name ...
分类:
Web程序 时间:
2020-05-31 22:07:00
阅读次数:
108
<template> <div> <span class="weui-switch" :class="{'weui-switch-on' : isChecked}" :value="value" @click="toggle" style="position:relative"> <div v-if ...
分类:
其他好文 时间:
2020-05-31 20:08:48
阅读次数:
86
<context:component-scan>:扫描组件,对设置的包下面的类进行扫描,会讲加上注解的类作为Spring的组件进行加载 **组件:**指Spring中管理的bean ? 作为Spring的组件进行加载:会自动在Spring的配置文件中生成相对应的bean,这些bean的id会以类的首 ...
分类:
编程语言 时间:
2020-05-31 20:02:15
阅读次数:
79