上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页
摘要: 和条件有关v-if,v-show 区别和属性绑定有关v-bind:属性 = "表达式" ,v-bind可省略和事件有关v-on:click = "事件名", 可缩写成@click = "事件名"v-model="question" ,question是 data中的字段v-bind:class="{ 阅读全文
posted @ 2020-09-18 10:09 liuw_flexi 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 来源于慕课网: https://www.imooc.com/video/21752 代码:https://github.com/nwgdegitHub/demo-backtop.git 阅读全文
posted @ 2020-09-17 10:45 liuw_flexi 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Table.vue <template> <div class="main"> <el-table :data="tableData" style="width: 100%"> <el-table-column prop="date" label="日期" width="180"> </el-tab 阅读全文
posted @ 2020-09-11 11:11 liuw_flexi 阅读(387) 评论(0) 推荐(0) 编辑
摘要: main.java package com.company; //import java.util.ArrayList; public class Main { public static void main(String[] args) { // write your code here Arra 阅读全文
posted @ 2020-09-08 21:12 liuw_flexi 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Vue.prototype.$ 意为绑定一个全局变量 Vue.use(XXX) 意为引入XXX, 例如Vue.use(VueRouter), 1. 但是用 axios时,就不需要用 Vue.use(axios)?因为 axios 没有 install。 2. Vue.prototype.$ 和 Vu 阅读全文
posted @ 2020-09-08 17:04 liuw_flexi 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 初始化一个Vue实例,控制id为app1的区域: <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <style media="screen"> *{ margin:0; 阅读全文
posted @ 2020-09-08 17:00 liuw_flexi 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 实现方式也可以参考: https://www.cnblogs.com/aknife/p/11709255.html 以下代码做法没有什么思路,就是简单的取数据,渲染 province.json { "0": { "110000": "北京", "120000": "天津", "130000": "河 阅读全文
posted @ 2020-09-07 15:16 liuw_flexi 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 1. 若安装了命令行工具 ,可以使用命令创建项目 vue create XXX 2.安装vuex npm install vuex 3.组织目录结构(自己看需要) 4.代码部分 vuex 和 React中的redux一样,是一个集中state管理工具 4-1 首先需要在main.js 引入,然后挂在 阅读全文
posted @ 2020-09-03 13:47 liuw_flexi 阅读(382) 评论(0) 推荐(0) 编辑
摘要: int m_value = 1; void func(int *p){ p = &m_value; } int main(int argc, const char * argv[]) { using namespace std; int n = 2; int *pn = &n; cout << "* 阅读全文
posted @ 2020-08-18 11:00 liuw_flexi 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列: package com.mj; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(fib2(46)); 阅读全文
posted @ 2020-08-12 16:35 liuw_flexi 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 29 下一页