码迷,mamicode.com
首页 >  
搜索关键字:pre    ( 61914个结果
Go语言之通道
1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 func main() { 8 //channel是可以让一个goroutine发送特定值到另一个goroutine的通信机制。 9 //声明通道类型 10 var a chan int //声明一个int类型的 ...
分类:编程语言   时间:2020-03-09 21:15:30    阅读次数:62
让js字符串中nbsp;输出为正常空格
jQuery 文档操作 - html() 方法 定义和用法 html() 方法返回或设置被选元素的内容 (inner HTML)。 如果该方法未设置参数,则返回被选元素的当前内容。 $(".btn1").click(function(){ $("p").html("Hello <b>world&nb ...
分类:Web程序   时间:2020-03-09 21:06:25    阅读次数:361
desktopinfo使用方法
desktopinfo.ini配置方法#Sampleconfigurationfile[options]#sizeandpositiontop=30right=20width=300#fontfont-face="宋体"font-size=14font-charset=1font-rtl=0#logginglog=desktopinfo.loglog-level=error[text]noresu
分类:其他好文   时间:2020-03-09 20:59:32    阅读次数:214
hdu 2051 Bitset(进制转换)
Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b ...
分类:其他好文   时间:2020-03-09 20:52:34    阅读次数:49
性能测试之nmon对linux服务器的监控
1. nmon介绍 Nmon是一款计算机性能系统监控工具,因为它免费,体积小,安装简单,耗费资源低,广泛应用于AIX和Linux系统。 2. nmon数据采集 性能测试时,需要根据测试场景的执行情况,分析一段时间内系统资源的变化,这时需要nmon采集数据并保存下来,以下是常用的参数: -f 参数:生 ...
分类:系统相关   时间:2020-03-09 20:49:47    阅读次数:65
JavaScript设计模式样例十一 —— 外观模式
外观模式(Facade Pattern) 定义:隐藏系统的复杂性,并向客户端提供了一个客户端可以访问系统的接口。 目的:为子系统中的一组接口提供一个一致的界面,外观模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。 场景:客户端不需要知道系统内部的复杂联系,整个系统只需提供一个"接待员"即 ...
分类:编程语言   时间:2020-03-09 19:32:18    阅读次数:61
html2canvas 采坑
1.需要将要转换成图片的区域div放置在body中,且需要display为block; 2.图片跨域的问题:将icon转换为base64 3.截图不全:新版本插件不稳定,建议 <script src="https://cdn.bootcss.com/html2canvas/0.5.0-alpha1/ ...
分类:Web程序   时间:2020-03-09 18:14:49    阅读次数:75
剑指OFFER----面试题53 - II. 0~n-1中缺失的数字
链接:https://leetcode cn.com/problems/que shi de shu zi lcof/ 代码 ...
分类:其他好文   时间:2020-03-09 18:11:54    阅读次数:44
Spring 事务 转
出处: spring事务 1.背景 Spring提供了编程式事务和声明式事务,但由于编程性事务的侵入性,开发中普遍会使用Spring的声明式事务,下文中所说的Spring事务也都是指声明式事务。 Spring声明式事务底层是建立在AOP的基础上的,其本质就是对方法前后进行拦截,然后在目标方法之前创建 ...
分类:编程语言   时间:2020-03-09 18:09:39    阅读次数:59
高精度除法
#include<iostream> #include<string> using namespace std; const int Max = 550; void Enlarge(int p[], int q[], int bits); //将数组p的数字串右移bits位 int Compare( ...
分类:其他好文   时间:2020-03-09 17:56:50    阅读次数:52
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!