随笔分类 - 其他
摘要:文档:https://lbsyun.baidu.com/index.php?title=webapi/weather 一、申请API Key 百度ak申请地址:http://lbsyun.baidu.com/apiconsole/key 二、接口示例 https://api.map.baidu.co
阅读全文
摘要:一、文档 https://ai.baidu.com/ai-doc/IMAGESEARCH/Ck3bczreq 二、示例代码 获取token 1、入库 <?php /** * 发起http post请求(REST API), 并获取REST请求的结果 * @param string $url * @p
阅读全文
摘要:一、文档 https://ai.youdao.com/DOCSIRMA/html/trans/api/wyfy/index.html 二、示例 # -*- coding: utf-8 -*- import sys import uuid import requests import hashlib
阅读全文
摘要:一、基本命令 1、第一次初始化 git init git add . 添加当前目录到缓存区git commit -m ‘注释’ 提交到本地仓库 git remote add origin git@github.com:帐号名/仓库名.gitgit pull origin master(分支名称)gi
阅读全文
摘要:一、Photo Sphere Viewer 1、文档:https://photo-sphere-viewer.js.org/guide/ demo链接:https://pan.baidu.com/s/1UPOq17DJTCihNdmESMKMPg 提取码:v9n9 2、效果图 3、示例代码 <htm
阅读全文
摘要:一、下载 http://www.winwin7.com/soft/12461.html 二、效果图
阅读全文
摘要:一、项目目录 二、配置.htaccess 其中主要的是.htaccess文件配置 <IfModule mod_rewrite.c> if (!-f $request_filename){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite ^/([
阅读全文
摘要:TreeTable.js下载 链接:https://pan.baidu.com/s/1lLBge_4MSSViLztwTnPfkA 提取码:whj3 一、效果图 二、前端代码 {include file='common/header'} <div class="layui-fluid"> <div
阅读全文
摘要:一、下载 https://gitee.com/hnaoyun/PbootCMS/ 二、开发文档 https://www.pbootcms.com/docs/ 三、模板网 https://www.pbootcms.com/cooperation/
阅读全文
摘要:一、阿里云 /** * Created by PhpStorm. * User: Mr.Yang * Date: 2022/4/13 * Time: 10:14 * QQ: 2575404985 */ namespace app\api\controller; use OSS\OssClient;
阅读全文
摘要:一、代码 1、设置sort {field: 'endtime', title: '结束时间', sort: true} 2、刷新表格,向服务器传递排序的参数 table.on('sort(test)', function (obj) { console.log(obj.field, obj.type
阅读全文
摘要:/** * 设置编辑器内容 * @param {[type]} index 编辑器索引 * @param {[type]} content 要设置的内容 * @param {[type]} flag 是否追加模式 */ layedit.setContent(index, content, flag)
阅读全文
摘要:一、示例 function showDeskTopNotice(id, title, msg){ var Notification = window.Notification || window.mozNotification || window.webkitNotification; if(Not
阅读全文
摘要:一、验证radio、checkbox form.verify({ mustradio: function (value, item) { //单选按钮必选 var val = $(item).parent().find("input[name='answer']:checked").val(); i
阅读全文
摘要:一、常用API 1、View static currentState static context 公用数据存取上下文,用于跨视图存取数据。 static checkIfBrowserHistorySupportsPushPopAction() static getViewContainerDomE
阅读全文
摘要:一、单行文本省略 实现方法: 二、多行文本省略 实现方法: 注:
阅读全文
摘要:一、下载layer http://layer.layui.com/ 二、效果图 三、代码
阅读全文
摘要:一、目录结构 二、具体代码 MemcacheCluster.php memcached.php MY_Controller.php index.php
阅读全文
摘要:一、服务器集群改善并发问题 使用集群是网站解决高并发、海量数据问题的常用手段。当一台服务器的处理能力、存储空间不足时,不要企图去更换更强大的服务器,对大型网站而言,不管多么强大的服务器,都满足不了网站持续增长的业务需求。这种情况下,更恰当的做法是增加一台服务器分担原有服务器的访问及存储压力。 对网站
阅读全文