- 博客(41)
- 资源 (7)
- 收藏
- 关注
原创 js打印html页面
function printse(){document.getElementById('loading').style.display ='block';document.getElementById('print').style = 'display:none'document.getElementById('download').style = 'display:none'getDomList('tuxiangfenxi_1', true, 20)getDomList('snengs
2022-05-13 17:29:42
1074
原创 js生成pdf文件并下载
function download() {document.getElementById('loading').style.display ='block';document.getElementById('print').style = 'display:none'document.getElementById('download').style = 'display:none'getDomList('tuxiangfenxi_1', true, 20)getDomList('snen
2022-05-13 17:28:21
2294
原创 js获取图片数据流
// 由Image对象获取图片的Base64// img: Image对象, width、height调用时传入具体像素值,控制大小 ,不传则默认图像大小function getBase64Image (img, width, height) {const canvas = document.createElement('canvas')canvas.width = width || img.widthcanvas.height = height || img.heightconst
2022-04-22 14:51:27
5059
原创 flutter web打包
第一种渲染方式:flutter build web --web-renderer html第二种渲染方式:flutter build web --web-renderer canvaskit
2022-04-18 10:39:00
4225
原创 Taro 跨域请求配置
devServer:{host:"localhost",port:10086,proxy:[{context:['/api','/upload','/coach'],target:"http://192.168.101.110:3721",//域名pathRewrite:{"^/api":"/api",...
2021-09-17 16:22:48
3315
1
原创 mysql 预查询-无限极分类
class Test extends Controller{ public function index(){ $id = input('id'); //$this->setparent(); $this->setchild($id); } public function setparent(){ $list = []; $list = db('ce')->insert([ .
2021-07-19 16:47:20
397
原创 Centos下nginx的安全和优化
1、一些常识 linux下,要读取一个文件,首先需要具有对文件所在文件夹的执行权限,然后需要对文件的读取权限。 php文件的执行不需要文件的执行权限,只需要nginx和php-fpm运行账户的读取权限。 上传木马后,能不能列出一个文件夹的内容,跟php-fpm的运行账户对文件夹的读取权限有关,木马执行命令的权限跟php-fpm的账户权限有关。 如果木马要执行命令,需要php-fpm的账户对相应的sh有执行权限。 读取一个文件夹内的文件,是不需要对文件夹有读取权限
2021-06-16 09:11:06
220
原创 在Linux CentOS7下设置netcore Net5 项目开机自启
一、创建文件在etc/systemd/system下创建xxx.service文件vi /etc/systemd/system/ubif.service二、编辑文件[Unit]Description="ubif Service" [Service]Type=simpleGuessMainPID=trueWorkingDirectory=/var/ubif/UbifPublish/ ..
2021-05-19 14:35:24
843
原创 flutter配置注意事项
setx PUB_HOSTED_URL "https://pub.flutter-io.cn"setx FLUTTER_STORAGE_BASE_URL "https://storage.flutter-io.cn"
2020-10-19 11:52:42
125
转载 Redis PHP配置
随着今年无数网红的出现,各种小视频直播平台如雨后春笋搬出现,像抖音,快手等,市场简直火爆的,大江南北男女老少都在玩,作者都想转行去当个主播火一把,然鹅,不能靠脸吃饭,所以还得日夜加班踏踏实实写代码分享给大家。这不,近期就接到一个客户的直播+小视频项目。该项目用php开发的,项目中有一处new Redis() 代码,每次执行到这里都会抛出这个异常Class 'Redis' not found,但是本...
2019-06-20 09:59:26
4859
原创 vue switch组件
组件<template> <view> <view class="weui-switch" :class="{'weui-switch-on' : me_checked}" :value="value" @click="toggle"></view> </view></template><scri...
2019-06-18 16:15:27
9098
原创 uni-app editor富文本编辑器
<form @submit="formCompany" @reset="formReset"><view class="uni-form-item uni-column"> <view class="title">公司介绍:</view> <editor style="background-color: #EBEBEB; width: ...
2019-06-12 13:34:41
23934
5
原创 uni-app 小程序 vue 服务器请求封装
export var dd = "asdfsadfasdf";export class request{ static request(url, data, method = 'GET') { url = "http://hr.jifen.com" + url let header = { 'content-type': 'application/json', ...
2019-06-06 23:55:13
1893
原创 小程序使用webstocket
nginx配置location /wss { proxy_pass http://websocket; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";}小程序端onLoad: f...
2019-05-28 09:15:33
1284
原创 phpexcel 导入导出
//导出function export_Excel($data,$title){ $path = dirname(__FILE__); //找到当前脚本所在路径 $PHPExcel = new PHPExcel(); //实例化PHPExcel类,类似于在桌面上新建一个Excel表格 $PHPSheet = $PHPExcel->getActiveSheet();...
2019-05-21 17:37:18
198
原创 微信小程序 picker 多级联动
<picker mode="multiSelector" bindchange="bindjobcatchange" bindcolumnchange="bingjobcatcolumnchange" value="{{multiIndex}}" range="{{job_cat_list}...
2019-04-29 23:11:03
5151
转载 jquery 导出word文档及打印
HTML<input type=button class="btn btn-primary" name='button_export' value='打印简历' onclick=preview(1) > <input type=button class="btn btn-primary" n...
2019-04-05 17:36:42
2492
原创 点击页面其它地方关闭弹出层
$(".statusoption").click(function () { $(this).children().toggle(); }) $('body').click(function(e) { if(e.target.type != 'button') if ( $('.tipse').is(':visible') ...
2019-04-05 10:28:30
1667
原创 百度地图上单击获取地址
<style> #allmap{width:100%;height:240px;} p{margin-left:5px; font-size:14px;}</style><div id="allmap"></div><script> var map = new BMap.Map("allmap");
2019-03-05 16:39:26
971
转载 php excel ajax 导出文件
$list = [];//要导出的数据 $path = dirname(__FILE__); //找到当前脚本所在路径 vendor("PHPExcel.PHPExcel.PHPExcel"); vendor("PHPExcel.PHPExcel.Writer.IWriter"); vendor("PHPExcel.PHPExce...
2019-02-26 11:00:25
1311
原创 API token身份验证 (thinkphp5)
使用说明:登陆时生成token和刷新用的refresh_token,返回给客户端,客户端收到保存本地localStorage等,每次访问接口带上token,后端验证token存在并且一致后方可执行接下来的动作,假如不存在就返回token过期,客户端调用刷新接口传入token和refresh_token,服务器端进行验证,验证通过重新生成新的token保存数据库,返回给客户端客户端刷新本地toke...
2019-02-20 11:42:31
5409
1
原创 html jquery 数量范围选择(可用于薪资范围,价格范围)
<form class="layui-form"> <div class="form-row"> <div class="form-group col-md-6"> <label>工作性质</label><br /&
2019-02-12 23:30:13
1792
原创 html jquery 三级分类选择框(弹出式)可用于三级城市选择,职位分类选择,行业分类选择等
父级页面<div class="form-group col-md-6"> <label>职位类型</label> <input type="text" readonly class="form-control" name="job_cat_
2019-02-12 20:01:25
2067
原创 vue slot 插槽的使用
父组件<template> <div> <h3>这里是父组件</h3> <ceshitab :lists='lists'> <!-- lists将列表传递到子组件--> <div slot="ceshi" slot-scope="it
2019-02-12 17:11:02
300
原创 vue 上拉加载更多数据 / 分页
加载状态<div v-if='has_log == 0'> <load-more tip="上拉加载" :show-loading="false" background-color="#fbf9fe"></load-more> </div> <div v-if='has_log == 1'
2019-02-11 17:22:20
7141
3
转载 vue 百度地图调用
vue百度地图插件https://dafrok.github.io/vue-baidu-map/#/zh/search/local-search
2019-01-29 16:26:25
505
原创 vue 请求服务器端API接口
import axios from 'axios'import router from '@/router'axios.defaults.timeout = 3000axios.defaults.baseURL = ''axios.interceptors.request.use( config => { // const token = getCookie('名...
2019-01-23 16:45:06
3633
原创 echarts 地图数据展示
<div class='col' id="map-wrap" style=' height: 280px;'></div><script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script><script type=
2019-01-15 10:18:39
1252
原创 原生的 即时聊天前端 可插入图片,表情(没用html编辑器插件)
目前做的是定时器 ,需要引入jquery<div class="kefuddd"> <div class="kefu_imgs"></div> <div class='cnendksk'> <p class="zaixiankefu" style="text-align: c
2019-01-03 10:46:55
2018
原创 PHP 数组按照分类来组装,可用于无限级分类
html页面<form class="form form-horizontal" class="layui-form" id="form" method="post" action="{:\\think\\Request::instance()->baseUrl()}"> <input type="hidden"
2018-12-06 10:14:28
745
原创 linux mysql 创建用户并赋予权限
//新建用户 admin 密码为123456create user admin identified by '123456';//查看用户权限show grants for admin;//创建数据库create database if not exists dbname;//给test数据库权限赋给admin用户GRANT SELECT, INSERT, UPDATE, DELE...
2018-12-03 21:02:37
8422
原创 jquery php 省市区联动
JS: $("#from_prov_id,#from_city_id").change(function () { var current_prov_id = $(this).val(); var _this = this; $.ajax({ type:'get', url:"{:url('...
2018-11-26 17:11:53
390
原创 JS前端用jszip生成zip压缩包下载
<div class='domo'><div class="yaojianbaogao" style="display: none;"> <img src="image1.jpg" width="50" data-ordercode="bianhao0001" data-title="goods-good-1212
2018-11-12 16:37:55
12851
原创 js thinkphp5 图片上传 可预览 可删除
HTML部分<style>.upload_btn{margin-left: 100px; border: none; background-color: #0e947a; width: 80px; height: 30px; font-size: 16px; color: #fff5d4;}.upload_cc{z-index:1; width: 80px; height:...
2018-11-08 09:15:18
287
原创 php curl API接口类
<?phpnamespace curl;/** * Created by PhpStorm. * User: Administrator * Date: 2017/6/16 * Time: 9:54 */class ApiClient{//请求的token const token='token_str'; //请求url private $...
2018-11-05 16:02:35
1025
原创 workerman 从服务器端向用户端推送消息代码
数据推送<?php$client = stream_socket_client('tcp://127.0.0.1:5678', $errno, $errmsg, 1);// 推送的数据,包含用户,表示是给这个用户推送$data = array('uid'=>'','group'=>'admin', 'message'=>'发送成功啦');// 发送数据,注意...
2018-11-05 15:46:23
5493
原创 nginx php7 配置 (多配置文件方式)
1,在nginx.conf 文件中添加include vhosts/*.conf; 2,在vhosts文件夹中新建 www.dome.com.conf文件 ,配置内容如下:server { listen 80; server_name www.test.com; root d:/server/www; location / { index index...
2018-10-19 16:04:27
1022
原创 PHP mysql 批量插入数据
php向mysql插入百万数据只需不到一分钟时间,之间还可以优化<?phpset_time_limit(0);$dsn = 'mysql:dbname=test;host=localhost;port=3306';$username = 'root';$password = '123456';try { $pdo = new PDO($dsn, $username, ...
2018-10-15 17:33:33
2550
原创 ajax php 视频,大型文件上传
html页面<!doctype html><html lang="zh"><head> <meta charset="utf-8"> <title>HTML5 Ajax Uploader</title> <script src="https://
2018-10-12 08:54:21
1544
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人