- 昵称:51助手
- 博龄:6年6个月1天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
Errors while compiling. Reload prevented.
摘要:百度查了很多方法都不对,仔细查看代码,发现模版html内容只能由一个div包含否则就会报错<template> <div class="html"> html内容
Unknown custom element: - did you register the component correctly? For recursive components, make sure t
摘要:vue 在使用vant form表单组件时报错,查看文档是没错的报错的大至意思是找不到<van-field> 这个组件解决方法:引入Field组件import {Field} from 'vant'Vue.use(Field);
vue 父组件向子组件传递点击事件
摘要:创建了一个子组件,子组件有自已默认的点事击事,当父组件传递点击事件时,则执行父组件点击事件案列:顶部导行条情况:当点击左箭点,判断父组件是否传递了点击事件,如果有就执行父组件的点击事件,如果没有,则默认执行子组件的点击事件子组件相关代码html <div class="topBar&
vue cookies使用说明
摘要:vue资源库中有个插件很好用vue-cookiesgithub地址:https://github.com/cmp-cc/vue-cookies使用起来也很方便,将vue-cookies.js 引入$cookies.config() 设置默认值this.$cookies.config(expireTimes,
vue 当图片地址为空或错误时显示默认图片
摘要:html代码<img :src="userInfo.headimgurl?userInfo.headimgurl:''" :onerror="defaultimg" />js代码computed: {
jquery 点击复制函数
摘要:<div class="obj">要复制的内容</div>function copyToClipboard(element) { var $temp = $("<input>"
快递鸟物流查询接口封装成tp5模型
摘要:因为项目是基于tp5框架开发的,所以封装一下快递接口,好调用<?php namespace app\api\model; use think\Model; class ExpressApi extends Model { //----------
vant 地址编辑地区没有选中
摘要:地区没有自动选中原因是,地区列表数据没有加载完,而你的地址数据提前渲染了,导至的,解决办法判断地址数据请求完成if(response.status == 200)在赋值地址数据 或 地址数据延迟加载 setTimeout(function(){ },500);
tp5 object(think\response\Json)#29 转数组
摘要://$res 返回的对象数组,tp5使用 getContent()方法 dump(json_decode($res->getContent(),true));