用 v-for 把一个数组对应为一组元素 我们可以用 v-for 指令基于一个数组来渲染一个列表。 v-for 指令需要使用 item in items 形式的特殊语法,其中 items 是源数据数组,而 item 则是被迭代的数组元素的别名。 <ul id="example-1"> <li v-f ...
分类:
其他好文 时间:
2019-12-27 09:32:31
阅读次数:
69
最近跟着Django by Example 2015学习,可老想用最新版的Django3。在学的过程中可踩了不少坑。 今天就又碰到一个: 在这本书中96页有这样的代码: url(r'^login/$', 'django.contrib.auth.views.login', name='login') ...
分类:
其他好文 时间:
2019-12-27 00:28:47
阅读次数:
157
For Example: # sqlplus / as sysdbaSQL> START sqlhc.sql T djkbyr8vkc64h ...
分类:
数据库 时间:
2019-12-26 17:57:37
阅读次数:
108
Swoft的配置分为两类,环境配置和应用配置。 环境配置 环境配置是用于不常改动的跟环境相关的配置参数,例如:运行模式、资源地址等等。 在项目的根目录有一个 .env.example 如果要使用则把文件修改成 .env,配置就可以在里面使用。 .env APP_DEBUG = 0 SWOFT_DEB ...
分类:
其他好文 时间:
2019-12-26 11:16:34
阅读次数:
206
Problem Statement Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example: Assu ...
分类:
其他好文 时间:
2019-12-26 09:31:42
阅读次数:
87
1. 全部替换 我们知道 string.replace() 函数仅替换第一次出现的情况。 你可以通过在正则表达式的末尾添加 /g 来替换所有出现的内容。 var example = "potato potato"; console.log(example.replace(/pot/, "tom")) ...
分类:
编程语言 时间:
2019-12-26 09:25:49
阅读次数:
94
先给连接: https://github.com/LS1231/vue-preview 这是插件的文档 从文档中可以看出该插件已经值支持vue2.5以上了 安装: 引用 examples 注意: 我们在写代码的时候需要将传过来的数据给它绑定上上面例子中所包括的一些参数才能使用,直接上图: getPh ...
分类:
其他好文 时间:
2019-12-25 22:25:26
阅读次数:
200
在 IIS 环境搭建好 CI 框架后,默认的URL如下,其中的“index.php”甚是影响美观。 去掉的方法也较为简单。首先参照 CI 说明( https://codeigniter.org.cn/user_guide/general/urls.html#url-index-php ),移除链接中 ...
分类:
Web程序 时间:
2019-12-25 01:02:09
阅读次数:
125
1、安装 rpm -i需要安装的包文件名 举例如下: rpm -i example.rpm 安装 example.rpm 包; rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息; rpm -ivh example.rpm 安装 exampl ...
分类:
其他好文 时间:
2019-12-24 23:38:39
阅读次数:
83