最新发布第5页
JavaScript保留两位小数-Ddmit

JavaScript保留两位小数

JavaScript 保留两位小数的实现方法如下: 四舍五入 var num =2.446242342; num = num.toFixed(2); //输出结果为 2.45 不四舍五入 方法1:先把小数变整数 Math.floor(15.7784514000 * 100) / 10...
ddmit的头像-DdmitDdmit6年前
016180
nginx报错client intended to send too large body解决-Ddmit

nginx报错client intended to send too large body解决

上传图片文件过大,导致Nginx报错client intended to send too large body: 3776747 bytes,解决办法是对Nginx的client_max_body_size。 环境 nginx/1.14.0 (CentOS); 因为我部署了多个项目,...
ddmit的头像-DdmitDdmit6年前
033710
如何下载保存推特Twitter上的GIF动图和视频-Ddmit

如何下载保存推特Twitter上的GIF动图和视频

2021最新基于nginx搭建v2ray服务端配置vmess+tls+websocket详细教程(图文) 极力推荐:racknerd(17.88刀/年,5T流量/月)快速搭建v2ray服务端配置vmess+tls+websocket详细教程(图文) 史上最详...
ddmit的头像-DdmitDdmit4年前
03.6W+8
机场搭建: 通过aaPanel安装v2board及完成后端对接-Ddmit

机场搭建: 通过aaPanel安装v2board及完成后端对接

本文主要介绍了v2board这款v2ray管理面板及对应后端soga的对接过程。一、环境信息Debian 11;Php 7.4;MySQL 5.7;Redis 7.2.3;Nginx 1.21.4;aaPanel 6.8.23;soga: 2.9.4二、安装2.1 安装aapanel官...
解决PL/SQL查询数据库结果中文乱码-Ddmit

解决PL/SQL查询数据库结果中文乱码

PL/SQL Developer 显示中文乱码问题 简单版本: 首先,通过 select userenv('language') from dual; 查询oracle服务器端的编码, 如为: AMERICAN_AMERICA.US7ASCII 显示什么编码 就设置什么编...
ddmit的头像-DdmitDdmit6年前
026290
如何break/exit jquery.each()方法-Ddmit

如何break/exit jquery.each()方法

在使用jQuery的each()方法时,如何跳出循环呢?根据官方文档的说明,可以使用return false进行break,如下: We can break the $.each() loop at a particular iteration by making the callbac...
ddmit的头像-DdmitDdmit6年前
021380
JFreeChart如何设置柱状图宽度-Ddmit

JFreeChart如何设置柱状图宽度

在jfreechart中如果不设置柱形图宽度的话,jfreechart会默认设定宽度,就会出现一个图形里只有一个柱的超宽柱形图,很不美观,可以通过下列代码设置宽度: BarRenderer barrenderer = new BarRe...
ddmit的头像-DdmitDdmit6年前
021320
jquery函数$.each()方法使用-Ddmit

jquery函数$.each()方法使用

两种用法: 数组: jQuery.each( array, callback ) 对象: jQuery.each( object, callback ) 数组示例: $.each([ 52, 97 ], function( index, value ) { alert( index + ': ' + value ); }); ...
ddmit的头像-DdmitDdmit6年前
015340
使用jquery设置radio选中状态-Ddmit

使用jquery设置radio选中状态

页面初始化完成即选中初始化按钮? 例: 页面代码 <input type='radio' name='gender' value='Male'> <input type='radio' name='gender' value='Female'> JS代码 $(function() { v...
ddmit的头像-DdmitDdmit5年前
020220
Windows 10手动安装python 2.7.8-Ddmit

Windows 10手动安装python 2.7.8

在Windows 10系统下安装python环境,我的环境信息如下 系统:Win 10; Python:2.7.8 安装python 1.下载python 地址:https://www.python.org/downloads/; 2.安装python 记得选中Add to Path。...
ddmit的头像-DdmitDdmit6年前
021490