11 2022 档案

摘要:最近要写读取FTP服务器上的csv档,记录下: 第一种方法: 使用ftp系列函数将FTP服务器的文件下载到本地,再打开读取内容 $ftp_server = "192.168.1.14"; $ftp_user_name = "ftp_username"; $ftp_user_pass = "ftp_p 阅读全文
posted @ 2022-11-24 17:15 carol2014 阅读(171) 评论(0) 推荐(0) 编辑
摘要:格式化后得到 阅读全文
posted @ 2022-11-24 10:52 carol2014 阅读(45) 评论(0) 推荐(0) 编辑
摘要:当前python版本3.10.8 django版本4.1.3 #开始步骤 pip install django django-admin startproject mysite #生成mysite目录 mysite/mysite目录 __init__.py asgi.py settings.py u 阅读全文
posted @ 2022-11-19 22:28 carol2014 阅读(3) 评论(0) 推荐(0) 编辑
摘要:本文出处 http://www.cnblogs.com/vamei 作者:Vamei 序列(sequence) 序列包含有定值表(tuple)和表(list)。字符串(string)是一种特殊的定值表 下面的内建函数(built-in function)可用于序列(表,定值表,字符串): len(s 阅读全文
posted @ 2022-11-19 14:58 carol2014 阅读(118) 评论(0) 推荐(0) 编辑
摘要:Class 与 Style 绑定 在将 v-bind 用于 class 和 style 时,Vue.js 做了专门的增强。表达式结果的类型除了字符串之外,还可以是对象或数组。 绑定 HTML Class <!-- 对象语法 active 这个 class 存在与否将取决于 data property 阅读全文
posted @ 2022-11-19 11:16 carol2014 阅读(76) 评论(0) 推荐(0) 编辑
摘要:应用 & 组件实例 //应用实例 const app = Vue.createApp({ data() { return { count: 4 } } }) //组件实例 const vm = app.mount('#app') console.log(vm.count) // => 4 生命周期 阅读全文
posted @ 2022-11-19 11:15 carol2014 阅读(126) 评论(0) 推荐(0) 编辑
摘要:突发奇想要将vue3作为js库嵌入到html中使用,顺便学习下vue3的基础知识 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>ECharts</title> <!-- 方法有用 --> <!-- <script src= 阅读全文
posted @ 2022-11-19 11:13 carol2014 阅读(158) 评论(0) 推荐(0) 编辑
摘要:php读取上传的csv文件 $filePath = $_FILES['file']['tmp_name']; $data = []; if (file_exists($filePath)) { $handle = fopen($filePath, 'r'); while ($tmp = fgetcs 阅读全文
posted @ 2022-11-19 11:08 carol2014 阅读(188) 评论(0) 推荐(0) 编辑
摘要:安装 composer require phpoffice/phpspreadsheet 读文件 <?php require './libs/phpoffice/vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\IOFactory; use Php 阅读全文
posted @ 2022-11-19 11:08 carol2014 阅读(1040) 评论(0) 推荐(0) 编辑
摘要:最近需要开发一个生成pdf文件的程序 ,试用了下几个生成pdf包的效果 <div style="width: 80%; padding-right: 3rem; padding-left: 3rem; margin-right: 3rem; margin-left: 3rem"> <table bo 阅读全文
posted @ 2022-11-19 11:06 carol2014 阅读(2982) 评论(0) 推荐(0) 编辑
摘要:<?php require_once './libs/tcpdf/vendor/autoload.php'; require_once './libs/mpdf/vendor/autoload.php'; require_once './libs/dompdf/vendor/autoload.php 阅读全文
posted @ 2022-11-19 10:56 carol2014 阅读(154) 评论(0) 推荐(0) 编辑
摘要:多语言切换 config/app.php 中 locale 中默认为‘en’ 'locale' => 'zh_CN', 建立LanguageController namespace App\Http\Controllers; class LanguageController extends Cont 阅读全文
posted @ 2022-11-19 10:52 carol2014 阅读(333) 评论(0) 推荐(0) 编辑
摘要:$query=DB::connection($conn)->table($table) ->select('*', DB::raw("CONCAT(date,' ',time) AS dttm")) ->where('P', $p) ->whereIn('status', $status) ->wh 阅读全文
posted @ 2022-11-19 10:47 carol2014 阅读(24) 评论(0) 推荐(0) 编辑
摘要:宏指令允许添加自定义功能到 Laravel 的内部组件里去,App\Providers\AppServiceProvider boot()方法中注册。 Request #注册 Request::macro('introduce', function ($name) { return 'Hello ' 阅读全文
posted @ 2022-11-19 10:43 carol2014 阅读(328) 评论(0) 推荐(0) 编辑
摘要:安装代码包 composer require maatwebsite/excel 导出多个sheet //ExportMulSheets.php namespace App\Exports; use Maatwebsite\Excel\Concerns\Exportable; use Maatweb 阅读全文
posted @ 2022-11-19 10:28 carol2014 阅读(467) 评论(0) 推荐(0) 编辑
摘要:JSZIP的github地址:https://github.com/Stuk/jszip 多个echarts图一键下载 charts_all.map(([index, myChart]) => { const imgContent = myChart.getDataURL({ type: "png" 阅读全文
posted @ 2022-11-19 10:20 carol2014 阅读(71) 评论(0) 推荐(0) 编辑
摘要:<script> function readCsv() { const file = $("#uploadFile")[0].files[0]; if (file.type != "text/csv") { alert("文件类型错误"); return; } var reader = new Fi 阅读全文
posted @ 2022-11-19 10:16 carol2014 阅读(763) 评论(0) 推荐(0) 编辑
摘要:<script> var formData = new FormData(); const date = $("#datepicker2").val(); formData.append("date", date); formData.append("file", $("#upload")[0].f 阅读全文
posted @ 2022-11-19 10:14 carol2014 阅读(18) 评论(0) 推荐(0) 编辑
摘要:xlsx的github地址:https://github.com/SheetJS/sheetjs <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script src="jquery/jquery-1.9.1.min.js"></scr 阅读全文
posted @ 2022-11-19 10:12 carol2014 阅读(104) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>jspdf</title> <link href="./plugins/bootstrap-5.1.3-dist/css/bootstrap.min.css" rel="sty 阅读全文
posted @ 2022-11-19 10:02 carol2014 阅读(620) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-19 09:56 carol2014 阅读(119) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <title>ZTREE DEMO</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" h 阅读全文
posted @ 2022-11-19 09:54 carol2014 阅读(76) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:51 carol2014 阅读(74) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:49 carol2014 阅读(89) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:44 carol2014 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:35 carol2014 阅读(103) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-19 09:34 carol2014 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-19 09:31 carol2014 阅读(42) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>AdminLT 阅读全文
posted @ 2022-11-19 09:27 carol2014 阅读(361) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-19 09:23 carol2014 阅读(365) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:19 carol2014 阅读(245) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en" backgound=""> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="view 阅读全文
posted @ 2022-11-19 09:16 carol2014 阅读(169) 评论(0) 推荐(0) 编辑
摘要:use Illuminate\Support\Facades\Route; var_dump(url()->current()); //"http://127.0.0.1:8000/test/a1" var_dump(url()->previous()); //"http://127.0.0.1:8 阅读全文
posted @ 2022-11-19 09:12 carol2014 阅读(491) 评论(0) 推荐(0) 编辑
摘要:数组方法 <script type="text/javascript"> let fruits = ["Banana", "Orange", "Apple", "Mango"]; //获取数组长度 fruits.length; //4 // toString() 把数组转换为数组值(逗号分隔)的字符 阅读全文
posted @ 2022-11-16 22:18 carol2014 阅读(481) 评论(0) 推荐(0) 编辑
摘要:$("div"); // 所有div元素 $(".item"); // class为item的元素 $("#content"); // id为content的元素 $("#content p"); // id为content内的p元素 $("#content p, .item"); // id为co 阅读全文
posted @ 2022-11-16 22:16 carol2014 阅读(75) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-16 22:16 carol2014 阅读(38) 评论(0) 推荐(0) 编辑
摘要:<script type="text/javascript" language="javascript" src="jquery/jquery-3.6.0.min.js"></script> <link rel="stylesheet" type="text/css" href="dataTable 阅读全文
posted @ 2022-11-16 22:12 carol2014 阅读(412) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-11-16 22:10 carol2014 阅读(74) 评论(0) 推荐(0) 编辑
摘要:clientHeight和offsetHeight属性和元素的滚动、位置没有关系它代表元素的高度,其中:clientHeight:包括padding但不包括border、水平滚动条、margin的元素的高度。对于inline的元素这个属性一直是0,单位px,只读元素。 offsetHeight:包括 阅读全文
posted @ 2022-11-16 22:05 carol2014 阅读(22) 评论(0) 推荐(0) 编辑
摘要:本文出处 http://www.cnblogs.com/vamei 作者:Vamei # 输出变量 a=5 print('Hello World!',a) # 查询变量的类型 type(a) # sequence 序列 sequence(序列)是一组有顺序的对象的集合 序列有两种:tuple(定值表 阅读全文
posted @ 2022-11-16 16:33 carol2014 阅读(22) 评论(0) 推荐(0) 编辑