vue-cli4脚手架搭建一 vue create vue3 cd vue3 yarn serve http://localhost:8080/#/ main.js文件 import Vue from 'vue' import App from './App.vue' import router f ...
分类:
其他好文 时间:
2020-07-18 15:32:39
阅读次数:
70
【vue踩坑记录】3、“Error in render: "TypeError: Cannot read property '0' of undefined"”渲染错误问题 最后发布:2019-02-09 20:20:07首发:2019-02-09 20:20:07 原文链接:https://blo ...
分类:
其他好文 时间:
2020-07-18 13:47:51
阅读次数:
331
vue源码中编译部分有下面一段代码,里面用到了with: export function generate ( ast: ASTElement | void, options: CompilerOptions ): CodegenResult { const state = new CodegenS ...
分类:
Web程序 时间:
2020-07-16 21:21:41
阅读次数:
96
jwt (json web token) 控制用户登录才能访问,以及不登陆访问: # 1 控制用户登录后才能访问,和不登录就能访问 from rest_framework.permissions import IsAuthenticated class OrderAPIView(APIView):# ...
分类:
编程语言 时间:
2020-07-15 23:51:08
阅读次数:
76
初始化-》挂载——》更新-》 生命周期函数:指在某一个时刻组件会自动调用执行的函数 生命周期都可以不存在,但是render不可以 生命周期函数:render componentwillmount():在组件即将被挂载到页面的时候自动执行。 componnentdidmount():在页面挂在完后,就 ...
分类:
其他好文 时间:
2020-07-14 18:32:44
阅读次数:
82
第1章 准备工作 1-2 准备工作 1-3 认识 Flow 1-5 Vue.js 源码目录设计 1-7 Vue.js 源码构建 1-9 从入口开始 第2章 数据驱动 2-2 数据驱动 2-4 new Vue 发生了什么 2-6 Vue 实例挂载的实现 2-8 render 2-10 Virtual ...
分类:
Web程序 时间:
2020-07-14 13:33:05
阅读次数:
84
TypeError: Cannot read property '$createElement' of undefinedat render (eval at ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_module ...
分类:
其他好文 时间:
2020-07-12 18:55:59
阅读次数:
111
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fun... ...
分类:
其他好文 时间:
2020-07-12 18:50:22
阅读次数:
74
一、轮询 前端通过定时器每隔多少秒钟发送一次请求。 投票示例: app.py from flask import Flask,render_template,request,jsonify app = Flask(__name__) USERS = { '1':{'name':'贝贝','count ...
分类:
其他好文 时间:
2020-07-10 16:52:19
阅读次数:
88
一、创建模版 二、代码实现 from django.shortcuts import render from django.template import loader from django.http import HttpResponse # Create your views here. de ...
分类:
其他好文 时间:
2020-07-10 09:51:42
阅读次数:
63