E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
returnthis
Invalid prop: type check failed for prop ““. Expected Number | String, got Array
父组件向子组件传值:props:{author_avatar_size:{type:[String,Number],default:"large",}},computed:{author_avatar_size(){
returnthis
.author_avatar_size
白瑕
·
2023-07-19 08:26
Vue.js
前端
vue.js
ES5继承的六种方式
functionSuperType(){this.property=true;}SuperType.prototype.getSuperValue=function(){
returnthis
.property
cixing
·
2023-07-18 13:14
Vue学习随堂记录
totalPrice}}newVue({el:"#app",data:{xyjPrice:99.98,shzPrice:98.00,xyjNum:1,shzNum:1},computed:{totalPrice(){
returnthis
.xyjPrice
雾喔
·
2023-07-18 10:01
前端
vue.js
前端
javascript
jest踩坑汇总
value:{store:{}asRecord,setItem(key:string,value:string){this.store[key]=value;},getItem(key:string){
returnthis
sjslln
·
2023-07-18 08:18
angular
开发语言
vue计算属性的getter和setter以及set方法的使用
fullName}}varvm=newVue({el:"#app",data:{firstName:"Denny",lastName:"Zhang"},computed:{fullName:function(){
returnthis
.firstName
nzdnllm
·
2023-07-17 15:48
element-ui upload上传组件踩坑之——fileList
==200){
returnthis
.$message.error(res.msg);}this.form={...th
泡杯感冒灵
·
2023-07-17 15:09
Vuex监听
$store.state.xxx.一、Vuex数据监听//1.在computed中把数据返回computed:{test(){
returnthis
.$s
静止呀
·
2023-07-17 12:34
Vue
vue.js
JS面向对象之常见创建对象的几种方式
1.使用对象字面量创建对象key-valuevarcat={name:'tom',info:this.name+':1212',getName:function(){
returnthis
.name;}}
Avicli
·
2023-07-16 22:16
函数
对象
面向对象
声明式服务调用Feign
queryItemByIdFallbackMethod")publicItemqueryItemById(Longid){StringserviceId="xushu-microservice-item";
returnthis
.restTemplate.getForO
放开那个BUG
·
2023-07-16 21:36
Java的this关键字和Builder模式
publicclassAge{//年龄intnumber=10;//生日Agebirthday(){sing();//等同于this.sing();number++;//等同于this.number++;
returnthis
小虎哥的技术博客
·
2023-07-16 12:01
二叉树遍历方法——前、中、后序遍历(java)
publicTreeNodeleft;publicTreeNoderight;publicTreeNode(charval){this.val=val;}@OverridepublicStringtoString(){
returnthis
.val
loss_rose777
·
2023-07-15 12:26
算法
TypeScript——类
classPerson{name:string;age:number;constructor(name:string,age:number){this.name=name;this.age=age;}print(){
returnthis
.name
_____西班木有蛀牙
·
2023-07-14 06:47
Vue学习笔记11
加A加BA--{{AddToA}}B--{{AddToB}}computed:{AddToA(){console.log("A++");
returnthis
.a+this.age;},AddToB
wing2464
·
2023-06-24 00:19
jq中为什么可以连续调用方法,连续点点点的形式
.html('haha').css('color','blue').show()这些方法类似于functiontoSing(){this.sing=function(){alert('sing');}
returnthis
竹小星
·
2023-06-23 17:50
四周搞定《JavaScript 高级程序设计》 - 读书笔记(Day 09)
functionSuperType(){this.property=true;}SuperType.prototype.getSuperValue=function(){
returnthis
.property
显卡84du
·
2023-06-22 05:18
不同路由,定位到同一个组件,组件中的生命周期函数只执行一次怎么办
1、给routerView加key2、使用监听器监听keycomputed:{key(){
returnthis
.$route.name!==undefined?this.
诗一墨
·
2023-06-21 06:02
项目
前端
vue.js
javascript
vue中后台管理中使用水印
mapGetters}from"vuex";importwatermarkfrom"watermark-dom";exportdefault{name:"AppMain",computed:{key(){
returnthis
qq_51538602
·
2023-06-20 10:17
前端
vue.js
echarts
格式化xml
后端返回的json字符串);//varresult=JSON.stringify(jsonObj,null,2);//格式化String.prototype.removeLineEnd=function(){
returnthis
.replace
五四青年_4e7d
·
2023-06-19 07:40
2018-05-11 高思总结
String.prototype.trim){Sting.prototype.trim=function(){
returnthis
.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF
范晓坤
·
2023-06-17 03:28
Vue计算属性与侦听属性的应用场景
constvm=newVue({el:"#APP",data(){return{firstName:"张",lastName:"三"}},computed:{fullName(){setTimeout(()=>{
returnthis
.firstName
小吴吴吴呀
·
2023-06-16 21:22
开发语言
前端
javascript
vue实现多选框全选功能
return{todoList:[{title:"吃饭",done:false},{title:"睡觉",done:true},],};},computed:{allDone:{get:function(){
returnthis
.active
Raken12
·
2023-06-16 15:57
前端
vue
JavaScript 继承
functionSuperType(){this.property=true;}SuperType.prototype.getSuperValue=function(){
returnthis
.property
·
2023-06-16 14:04
数据结构——在二叉树中查找指定的节点(Java)
publicNodepreOrderSearch(intnum){System.out.println("当前的节点数值为:"+this.num);Noderes=null;if(this.num==num){
returnthis
努力努力再努力@_@
·
2023-06-15 22:12
数据结构
数据结构
java
算法
C# json生成类
类json生成C#类小工具JSON字符串清除格式化代码生成C#类C#类代码 选中代码String.prototype.format=function(){varargs=arguments;
returnthis
.replace
令狐掌门
·
2023-06-14 05:52
C#基础
c#
json
开发语言
vue实现点击按钮下载图片到本地
e){
returnthis
.msg.msgWarning('下载失败');}console.log(this.baseUrl+e);leturl=this.baseUrl+e;this.getUrlBase64
qq_35435093
·
2023-06-14 05:47
vscode
vue.js
这道JS经典面试题不要背,今天带你彻底搞懂它!
//afunctionFoo(){getName=function(){console.log(1);}
returnthis
;}//bFoo.getNam
·
2023-06-13 23:23
js闭包
面试题1:varname='global';varobj={name:'obj',dose:function(){this.name='dose';returnfunction(){
returnthis
.name
秀萝卜
·
2023-06-13 07:31
【宠粉通道】叫我讲解的一道前端JS面试题-灵魂三问:prototype?类的prototype是什么?对象的proto是什么
让我们看看截图先,来源于wx群:file看看我是怎么回答的:filefilefilefilefilefunctionFoo(){getName=function(){alert(1);};
returnthis
魔王哪吒
·
2023-06-12 22:58
vue echarts 随窗口变化
importechartsfrom'echarts'exportdefault{props:{barData:{type:Object,default:()=>{return{}},},},data(){return{}},computed:{chartsData(){
returnthis
.barData
lovelydong
·
2023-06-12 16:29
常用 Composition API【VUE3】
person.fullName}}全名:import{reactive,computed}from'vue'exportdefault{name:'Demo',/*computed:{fullName(){
returnthis
.person
赖皮.
·
2023-06-12 13:48
javascript
前端
vue.js
【vuejs】vue中使用moment处理时间
$moment=moment;//赋值使用使用
returnthis
.$moment(‘时间’).format('YYYY-MM-DDHH:mm:ss')this.
weixin_48195664
·
2023-06-12 03:38
大数据
vue.js
闭包面试题
){returnobj[k];},};})();//如何在不改变上面代码的情况下,修改obj对象Object.defineProperty(Object.prototype,'abc',{get(){
returnthis
Mr.app
·
2023-06-10 22:27
javascript
开发语言
ecmascript
数组删除元素使用remove最优的方法
this.length+from:from;
returnthis
.push.apply(this,rest);};
Mr.app
·
2023-06-10 22:54
JS数组
javascript
Vue实现左边导航栏,右边显示对应内容
使用嵌套路由实现这里重点要注意使用,路由出口,路由匹配到的组件将渲染在这里导航栏代码userInfo.vue:基本信息通知exportdefault{name:"Settings",computed:{user(){
returnthis
Otto_1027
·
2023-06-10 10:29
vue
vue
uniapp的video层级过高盖住其他非原生组件问题
video组件会覆盖页面其他非原生组件的设计替代方案示例把组件放到components里面,代码如下-->exportdefault{computed:{posterUrl(){if(this.poster)
returnthis
.posterreturnthis.url
阿强的博客
·
2023-06-09 19:42
uni-app
javascript
前端
this 之谜揭底:从浅入深理解 JavaScript 中的 this 关键字(一)
this之谜揭底:从浅入深理解JavaScript中的this关键字(一)为什么要用this考虑以下代码:functionidentify(){
returnthis
.name.toUpperCase()
·
2023-06-08 16:31
JS高级语法
varperson={fullName:function(city,country){
returnthis
.firstName+""+this.lastName+","+city+","+country
WebGiser
·
2023-06-08 08:06
vue2:计算属性computed
1.实例:{{tnumber}}exportdefault{name:'HelloWorld',data(){return{number:100}},computed:{tnumber(){
returnthis
.number
一杯清酒.
·
2023-06-08 05:57
Vue2
javascript
vue.js
解决错误:Do not access Object.prototype method ‘hasOwnProperty‘ from target object no-prototype-builtins
问题调用hasOwnProperty报错:不要使用对象原型上的方法,因为原型的方法可能会被重写varperson={name:'xiaoliao',sex:'sex'show:function(){
returnthis
.name
爱学习的廖某
·
2023-06-08 02:16
JS
javascript
开发语言
ecmascript
vue
Controller接收参数的方式
以及请求头GET请求采用query方式代码形式:@GetMapping("/demo/{id}")publicEnterpriseselectOne(@RequestParamsIntegerid){
returnthis
.enterpriseService.queryById
沉默终止
·
2023-06-07 18:19
http
controller
http
spring
2023/5/30面试小结
classStack{constructor(){this.items=[];}//添加元素到栈顶push(element){this.items.push(element);}//移除栈顶元素并返回pop(){
returnthis
.items.pop
搜捕鸟了
·
2023-06-07 09:31
面试
面试
javascript
职场和发展
前端
开发语言
2019-12-16 对象基础
)宿主环境对象(如:windows,DOM)自己创建对象创建对象字面量创建varp={name:'hx',work:function(){},_age:18,//"_"表示不让直接用getage(){
returnthis
过了爱想象悲伤的年纪
·
2023-04-21 08:40
2018-12-13 Typescript私有属性的封闭和安全
classfoo{private_bar:boolean=falsegetbar():boolean{
returnthis
._bar}setbar(b:boolean){this.
rub1cky
·
2023-04-20 19:12
++i为啥比i++好
//++i以int为例int&operator++(){*this+=1;
returnthis
;}i++的实现i++表示使用i的值,然后将i的值加1。后置(i++)返回对象且产生临时对象。
涛起云永
·
2023-04-20 12:30
c++基础语法
算法
c++
数据劫持
_name){
returnthis
._name}else{this._name=v}}}obj.name='lisi';document.write(obj.name
冲锋敢死曾小贤
·
2023-04-19 19:45
微信浏览器replaceAll报无此方法
问题:微信浏览器replaceAll报无此方法:解决办法:String.prototype.replaceAll=function(s1,s2){
returnthis
.replace(newRegExp
·
2023-04-19 15:57
前端html微信浏览器
Vue 开发技巧
exportdefault{methods:{getParamsId(){
returnthis
.
骆骆爱学习
·
2023-04-19 12:39
javascript
前端
json
vue.js
html
React Native set get 方法
_testData:string;gettestData():string{
returnthis
._testData}settestData(data:string){this.
wangtieshan
·
2023-04-19 02:34
名字作业
{m}},全名叫{{xm}}exportdefault{name:'HelloWorld',data(){return{x:'贾',m:'培玉',}},computed:{xm:function(){
returnthis
.x
奈良真纯
·
2023-04-18 20:45
JavaScript中apply,call,bind解析
直接贴代码,后解说,编程就是这样,先应用,后理解varPerson={fullName:function(){
returnthis
.firstName+""+this.lastName;}}varperson1
Spider Cat 蜘蛛猫
·
2023-04-18 17:02
前端知识点汇总
javascript
linq
前端
上一页
5
6
7
8
9
10
11
12
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他