Day: November 16, 2018

javascript: 数字格式化, 数字处理, formatting numbers, manipulating ,Numeral.js

  项目地址:https://github.com/adamwdraper/Numeral-js Use it In the Browser <script src="numeral.min.js"></script> 或者使用CDN文件 <script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script> In Node.js npm install numeral var numeral = require('numeral'); 创建 创建数字的实例。数字采用它转换为… Read More

压力测试和评测工具 Siege

压力测试和评测工具 Siege 目录 Web性能压力测试工具之Siege详解: http://www.ha97.com/4663.html 系统吞吐量(TPS)、用户并发量、性能测试概念和公式:http://www.ha97.com/5095.html Siege官网:http://www.joedog.org/ 下载地址 siege: http://www.joedog.org/pub/siege/ Sproxy: http://www.joedog.org/pub/sproxy/ 压力测试工具siege的用法:http://buzheng.org/blog/usage-of-siege.html Siege是… Read More

mongodb 联表查询方法, PHP操作远程mongodb数据库

  本篇是 PHP操作远程mongodb数据库, MongoDB PHP Library, php connects with remote MongoDB 的延伸:   这里只对同库联表查询做介绍,跨库联表查询可能在之后也会介绍(因为公司架构变动,之后可能会联表查询) 我用到的联表查询有两种,一种是mongoose的populate,一种是$lookup populate populate是使用外键关联子表 例如现在有一张订单表结构(动态外键): var orderSchema = new mongoose.Schema({ uid: { type: String, required: true }, // 用户id amount… Read More

安装不同版本的PHP, 更换PHP默认版本, PHP多版本安装, How to Install Different PHP (5.6, 7.0 and 7.1) Versions in Ubuntu

  PHP(PHP的递归缩写:Hypertext Preprocessor)是一种开源的,流行的通用脚本语言,广泛使用并且最适合开发网站和基于Web的应用程序。它是一种可以嵌入HTML的服务器端脚本语言。 目前,有三种受支持版本的PHP,即PHP 5.6,7.0和7.1。含义PHP 5.3,5.4和5.5都达到了生命的尽头; 安全更新不再支持它们。 在本文中,我们将解释如何使用OndřejSurýPPA在Ubuntu及其衍生产品中安装所有受支持的PHP版本,以及Apache和Nginx Web服务器的大多数请求的PHP扩展。我们还将解释如何设置要在Ubuntu系统上使用的PHP的默认版本。 请注意… Read More

jQuery插件:带遮罩无限循环loading加载动画插件, jQuery LoadingOverlay

官网:https://gasparesganga.com/labs/jquery-loading-overlay/ 项目:https://github.com/gasparesganga/jquery-loading-overlay Get it 获取 GitHub View project on GitHub or download the latest release. npm npm install gasparesganga-jquery-loading-overlay Bower bower install gasparesganga-jquery-loading-overlay CDN https://cdn.jsdeli… Read More