摘要: 1.首先是index.html index.html则是项目的首页,入口页,也是整个项目唯一的HTML页面。 一般只定义一个空的根节点,在main.js里面定义的实例将挂载在根节点下,内容都通过vue组件来填充。 2.src/main.js 相当于Java中的main方法,是整个项目的入口js。主要 阅读全文
posted @ 2023-07-25 14:51 佳宁 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 第一步:打开vue.config.js,然后在后面添加 lintOnSave: false 第二步:再次运行 npm run serve就可以了 阅读全文
posted @ 2023-07-25 14:24 佳宁 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Vue2 计算属性 computed <template> <span>{{fullName}}</span> </template> <script> data: { firstName: '张', lastName: '三' }, computed: { fullName: { // get有什 阅读全文
posted @ 2023-07-20 17:27 佳宁 阅读(190) 评论(0) 推荐(0) 编辑
摘要: computed 和 methods 看起来都可以实现我们的功能,那么它们有什么区别 ? 计算属性会进行缓存,多次使用时,计算属性只会调用一次; 而 methods 不会缓存,每次使用都会调用里面的逻辑 补充: 计算属性是基于它们的响应式依赖进行缓存的,只有在相关响应式依赖发生改变时才会重新求值 阅读全文
posted @ 2023-07-20 17:08 佳宁 阅读(7) 评论(0) 推荐(0) 编辑
摘要: v-for指令,即列表渲染 在数据项里,我们首先定义一个列表数组: list: ["apple", "pear", "banana"] 在页面上我想把这几个水果名展示在li里面,如何做呢?我们可以这样做,利用v-for指令: <ul> <li v-for="item in list">{{ item 阅读全文
posted @ 2023-07-20 16:55 佳宁 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 元字符 Python中常见元字符及其含义如下: 元字符 含义 . 匹配除换行符以外的任意一个字符 ^ 匹配行首 $ 匹配行尾 ? 重复匹配0次或1次 * 重复匹配0次或更多次 + 重复匹配1次或更多次 {n,} 重复n次或更多次 {n,m} 重复n~m次 [a-z] 任意字符 [abc] a/b/c 阅读全文
posted @ 2022-05-12 09:33 佳宁 阅读(25) 评论(0) 推荐(0) 编辑
摘要: python源码解释如下:map(func, *iterables) --> map objectMake an iterator that computes the function using arguments fromeach of the iterables. Stops when the 阅读全文
posted @ 2022-03-04 10:11 佳宁 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 我们需要在网卡配置文件中加上DNS: vim /etc/sysconfig/network-script/ifcfg-ens33然后在最后一行添加上DNS1=8.8.8.8,配置尽量保持如下图所示: 接下来就是老生常谈的在我们每一次修改完配置文件之后都需要重启服务. systemctl restar 阅读全文
posted @ 2022-02-24 09:55 佳宁 阅读(1761) 评论(0) 推荐(0) 编辑
摘要: 执行时报错:failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.http://mirrors.163.com/centos/$releasever/os/x86_64/repodata/repomd.x 阅读全文
posted @ 2022-02-23 17:46 佳宁 阅读(1959) 评论(0) 推荐(0) 编辑
摘要: 1,第一步登陆虚拟主机,安装openssh-server(这一步非常重要,如果不安装,你在宿主机上怎么链接都是连不上的,我当时就犯了这个错误) apt-get install openssh-server 2,接下来这是虚拟机的端口转发,这个是最简单的。 这样就可以用secureCRT链接到自己的虚 阅读全文
posted @ 2022-02-23 16:30 佳宁 阅读(431) 评论(0) 推荐(0) 编辑