vue中的过滤器适用与文本数据切换,在vue中的定义方法; Vue.filter('过滤器的名字' , function(){}); 列子; <div id="app"> <p>{{mag | magfeer('爱你')}}</p> </div> <script> //过滤器的定义方法 Vue.fi ...
分类:
其他好文 时间:
2019-12-08 15:58:04
阅读次数:
83
1 # Author:Winter Liu 2 import xlrd 3 import xlsxwriter 4 import os 5 6 # 获取文件目录 7 file_list = os.listdir("C:\PycharmProjects\python level up\excel_fi ...
分类:
其他好文 时间:
2019-12-07 19:39:43
阅读次数:
321
1 if 判断 1.基本语法 if [ 条件判断式 ];then 程序 fi 或者 if [ 条件判断式 ] then 程序 elif [ 条件判断式 ] then 程序 else 程序 fi 注意事项: (1)[ 条件判断式 ],中括号和条件判断式之间必须有空格 (2)if后要有空格 2.案例实操 ...
分类:
系统相关 时间:
2019-12-07 14:41:45
阅读次数:
83
php 如何生成path及其日常维护 path字段重要性不言而喻,在查询的时候,如果只用pid,查询效率会很低,增加path,查询效率大大提高,最起码不用递归查库了,重点是维护推荐关系的时候要维护path以及更改。 在path分隔符中,建议使用英文','号,方便查询。切记使用like,最好是使用fi ...
分类:
Web程序 时间:
2019-12-06 11:21:43
阅读次数:
117
设计模式学习08:享元模式 参考资料 https://www.jianshu.com/p/a2aa75939766 https://www.cnblogs.com/adamjwh/p/9070107.html 简介 Use sharing to support large numbers of fi ...
分类:
其他好文 时间:
2019-12-06 09:27:36
阅读次数:
85
Linux cut命令用于显示每行从开头算起 num1 到 num2 的文字。 语法 cut [-bn] [file] cut [-c] [file] cut [-df] [file] 使用说明: cut 命令从文件的每一行剪切字节、字符和字段并将这些字节、字符和字段写至标准输出。 如果不指定 Fi ...
分类:
系统相关 时间:
2019-12-03 21:32:14
阅读次数:
101
Access to XMLHttpRequest at 'http://localhost:9600/user/logout' from origin 'http://localhost:9528' has been blocked by CORS policy: Request header fi ...
分类:
数据库 时间:
2019-12-02 00:54:58
阅读次数:
106
源码如下 !/bin/sh 根据进程名杀死进程 if [ $ lt 1 ] then echo "缺少参数:procedure_name" exit 1 fi PROCESS= for i in $PROCESS do echo "Kill the $1 process [ $i ]" kill 9 ...
分类:
系统相关 时间:
2019-12-01 19:12:12
阅读次数:
138
"from here" !/bin/bash Check if user is root if [ $(id u) != "0" ]; then Echo_Red "Error: You must be root to run this script" exit 1 fi . common.sh . ...
分类:
其他好文 时间:
2019-12-01 13:47:34
阅读次数:
101
一、File与Directory 二、读取文件(StreamReader) 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 //从指定盘下读取.txt文件 6 string sdick=@"C:\"; 7 string[] fi ...
分类:
其他好文 时间:
2019-11-30 13:39:10
阅读次数:
91