- 如何进行架构技术方案选型?
猫咪张
系统架构设计strutsspringmvcjsf架构设计ejb
在架构设计时,通常面临的一个难题是,如何选择架构的技术方案.这也是各种项目都会碰到的问题.我们到底是选择C/S,B/S模式,如果选择C/S,那么到底是三层C/S还是两层,到底要不要分布式,B/S的展示层是自己写MVC,还是应用已有的开源的如SpringMVC,Struts2.0,JSF技术。总之,可选的确实是太多了。那么怎么去选择呢?这个问题确实有点难,但也有解决方法的。首先,我们需要研究我们项目
- 第二百一十六节 JSF教程 - JSF基本标签、JSF表单文本框示例
程序猿小D
开发语言java反射jvmjdkJSF
JSF教程-JSF基本标签JSF提供了一个标准的HTML标签库,它们被渲染成相应的html输出。为了使用这些标签,我们需要在html节点中使用以下URI的命名空间。JSF基本标签以下是JSF2.0中的重要基本标签。标签描述h:inputTexttype=“text"的HTML输入,文本框。h:inputSecrettype=“password"的HTML输入,文本框。h:inputTextarea
- SPIRNGBOOT+VUE实现浏览器播放音频流并合成音频
定制开发才有价值
音视频人工智能语音合成
一、语音合成支持流式返回,通过WS可以实时拿到音频流,那么我们如何在VUE项目中实现合成功能呢。语音合成应用非常广泛,如商家广告合成、驾校声音合成、新闻播报、在线听书等等场景都会用到语音合成。二、VUE下实现合成并使用浏览器播放代码如下:在线语音合成流式版{{ttsText}}立即合成DOWNWAVimport*asbase64from'js-base64'importCryptoJSfrom'.
- html js弹幕功能
kilito_01
javascripthtml
效果如上html{{isStop?'开始弹幕':'停止弹幕'}}添加弹幕jsfunctionAddDanMuFn(option){this.currentDanmuNum=0;//移动到实例属性this.option=option;this.elWidth=option.el.offsetWidth!=0?option.el.offsetWidth:document.querySelector('
- 小程序 Base64转换字符串
北境程序员
小程序Base64转换字符串base64
文件base.jsfunctionBase64(){let_keyStr=“ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=”;this.encode=function(input){varoutput=“”;varchr1,chr2,chr3,enc1,enc2,enc3,enc4;vari=0;input=_ut
- 大屏自适应解决方案(手写js)
Abao
javascript前端html
一、插件v-scale-screen地址前端可视化大屏适配方案_前端大屏适配方案vwvh适配方案,当浏览器窗口变动时实时适配-CSDN博客二、使用方法import{autoScale}from'./autoScale.js'autoScale('#app',{width:1920,height:1080})autoScale.jsfunctiondebounce(fn,delay){lettime
- vue-cli webpack 打包报错:Unexpected token: punc (()
曹天骄
vue
本来项目完美打包,后来我增加了一个插件vue-ionicons,打包build就是报错:ERRORinstatic/js/8.017e5cf2d2f1a552890d.jsfromUglifyJsUnexpectedtoken:punc(()[./node_modules/vue-ionicons/dist/ionicons-mixin.js:7,0][static/js/8.017e5cf2d2
- webpack打包报错UglifyJs Unexpected token: punc (,)
enjoy嚣士
React+Antdwebpack前端node.js
项目当dev命令运行时能正常运行,打包后却报错UglifyJsUnexpectedtoken:punc(,),>yarnbuildCreatinganoptimizedproductionbuild...Failedtocompile.Failedtominifythebundle.Error:static/js/main.jsfromUglifyJsUnexpectedtoken:punc(,)
- js html css代码缩进,HTML/CSS/JS代码格式化
吃货喵
jshtmlcss代码缩进
8种机械键盘轴体对比本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?我们在编辑器当中写代码的时候,可能因为编写时候不规范或者复制粘贴的操作导致代码格式混乱。我在之前采用的是JSFormat来格式化JavaScript和JSON,使用SublimeText自带的reindent命令格式化HTML和CSS的文件。基本上reindent命令就足够用了。但是有缺点,一些html文件的格式不够优美!
- npm报错network request to https://registry.npmjs.org/fuse.js failed的解决方法
奔跑吧邓邓子
常见问题解答(FAQ)npm前端node.js
目录一、问题描述二、解决方法一、问题描述执行npminstall报错:npmERR!codeETIMEDOUTnpmERR!errnoETIMEDOUTnpmERR!networkrequesttohttps://registry.npmjs.org/fuse.jsfailed,reason:connectETIMEDOUT104.16.31.34:443npmERR!networkThisisa
- vue中使用day.js实现时间格式的互相转换
疯狂拔头发
javascriptvue.js开发语言
简介Day.js是一个轻量的处理时间和日期的JavaScript库,被设计用于在浏览器和Node.js中工作。安装npm安装>npminstalldayjs--save项目中使用importdayjsfrom'dayjs'//或vardayjs=require('dayjs')dayjs().format()常用正常时间格式转Unix时间戳(毫秒)let<
- vxe-grid 利用dayjs提供的方法来格式化, 计算二个日期之间的年数/年龄
花花鱼
Vue3vue.js
1、安装dayjspnpmadddayjsyarnadddayjsnpminstalldayjs2、导入importdayjsfrom'dayjs';3、vxe-grid列:exportconstUserColumns:VxeGridPropTypes.Columns=[...{title:'年龄',width:70,field:'old',showOverflow:'tooltip',align
- websocket结合ftv.js实现视频直播流播放
AAA正在输入中
websocketjavascript音视频
1.安装websocket:npmireconnecting-websocket安装ftv.js:npmiflv.js-S2.引入importReconnectingWebSocketfrom'reconnecting-websocket';importflvjsfrom"flv.js";3.1234.先websocket连接,与服务器建立实时通讯,当前端视频页面关闭时,后端可以实时接收,避免前端
- 057 Project Setup & First Methods
黄健华Yeah
03Vue3-UdemyTop1vue.js前端javascriptVue3
示例index.htmlVueBasicsMonsterSlayerMonsterHealthYourHealthATTACKSPECIALATTACKHEALSURRENDERBattleLogapp.jsfunctiongetRandomValue(min,max){returnMath.floor(Math.random()*(max-min))+min;}constmath=Math;co
- 【前端】onclick使用HTML页面外的的JS函数时报错:onclick _function_ is not defined.
开开心心happyheart
编程javascripthtml前端
问题在如下这种情况下,尽管加上了type="module",可onclick依旧找不到Function函数,会报错为:onclickFunctionisnotdefined.。(先保证路径没问题)HTMLButtonJSfunctionFunction(a){console.log(a);}分析这是因为Function函数的作用域仅在当前文件内,若想要跨文件调用,我们可以使用全局对象(注意不是全局
- YOLOv5 | 源码解析 | 计算损失loss原理——独家原创注释
kay_545
YOLOv8改进有效涨点Yolov5改进YOLOpython开发语言
⭐欢迎大家订阅我的专栏一起学习⭐订阅专栏,更新及时查看不迷路YOLOv5涨点专栏:http://t.csdnimg.cn/D9kR0YOLOv8涨点专栏:http://t.csdnimg.cn/5hNr8YOLOv7专栏:http://t.csdnimg.cn/hJsf1魔改网络、复现论文、优化创新各位订阅YOLOv8专栏读者,非常抱歉,这篇文章加错专栏了,但是因为是订阅的,所以不能删除或者移动这
- Write operation failed: computed value is readonly问题解决
Ian1025
javascript前端vue.js开发语言前端框架
源代码://封装倒计时逻辑函数import{computed,ref}from'vue'importdayjsfrom'dayjs'exportconstuseCountDown=()=>{//1.响应式数据consttime=ref(0)//格式化时间constformatTime=computed(()=>dayjs.unix(time.value).format('mm分ss秒'))//2.
- js图片url反转file文件 vue
一路向北qaq
javascript前端开发语言
场景由于项目需求,需要将图片url转成文件格式上传到服务器参考博客:图片url转file封装jstransferFile.jsfunctionsetInitImg(url,callback){letimg=url;//这里是淘宝上随便找的一张图片let_=thisletimgResgetBase64(img,(dataURL)=>{imgRes=dataURLtoFile(dataURL,img)
- [译] 每个开发人员都应该知道的五大Node.js功能
标题:Top5Node.jsFeaturesEveryDeveloperShouldKnow作者:DanushaNavod链接:https://blog.bitsrc.io/top-5-features-of-nodejs-e49d1c68f4a7无论你是经验丰富的Node.js开发人员还是初出茅庐的新人开发者,总有一些东西在Node.js中等待着我们去探索。在本文中,我将探讨可以增强整体体验的五
- Element-UI 多个el-upload组件自定义上传,不用上传url,并且携带自定义传参(文件序号)
Cutecumber
web开发vue.jselementui
1.需求:有多个(不确定具体数量)的upload组件,每个都需要单独上传获取文件(JSFile类型),不需要action上传到指定url,自定义上传动作和http操作。而且因为不确定组件数量,所以每次也需要获取是第几个文件(索引),所以也需要实现附加索引这个参数2.实现:如下#list不知道一共有几个列表项{returnonRemove(file,fileList,index)}"#这里的inde
- 【从Jest入门到 TDD,BDD双实战】Jest 前端自动化测试框架基础入门②
不停喝水
#【Jest自动化测试】前端自动化javascriptjestTDD
一:前端自动化测试产生的背景及原理二:构建基础结构1.创建文件夹2.创建index.htmlmath.js3.创建math.jsfunctionadd(a,b){returna+b;}functionminus(a,b){returna-b;}4.创建math.test.jsfunctionexpect(res){return{toBe(actual){if(res!=actual){thrown
- java-Exception的异常处理
zyt.com
java开发语言
在计算机程序的运行过程中,往往会出现各种各样的错误,因为有一些错误是程序员也无法避免的,比如说,输入框希望用户输入int类型的数字-年龄,但用户输入的是字符串“jsfg”,程序想要读取某个文件时,但用户已经将文件删除。还有一些错误是随机出现的,并且永远不可能避免的,比如:网络突然断了,连接不到服务器内存耗尽,程序崩溃了用户点打印,但根本没有打印机........Java的异常体系如下图如图,Thr
- 网络请求优化——取消请求
ephanoco
前言我们可能会遇到这样的场景:当用户切换页面时,上个页面存在pending中的请求。积少成多,如此会造成性能浪费,增加服务器压力。本文在于分享基于小程序提供的请求api及axios使用中如何取消不必要的请求。基于Promise的requestTask封装//request.jsfunctionrequest(opt){constconf={...}letreqTask=null//保存reques
- 封装倒计时函数
小秀_heo
javascript前端vue.js
//倒计时函数import{ref,computed,onUnmounted}from'vue'importdayjsfrom"dayjs";exportconstuseCountDown=()=>{//1.响应式数据consttime=ref(0)constformatTime=computed(()=>dayjs.unix(time.value).format('mm分ss秒'));letti
- Vue项目中RSA公钥及Aes加解密问题
啾啾酒
笔记vue.js前端
1.Vue项目中引入AES插件(1)安装crypto-jsnpminstallcrypto-js--save-dev(2)封装aes工具类importCryptoJSfrom'crypto-js';/***解密这里使用的是CBC模式必须要设置偏移量*@param{*}content需要解密字符串*@param{*}keykey*@param{*}iv偏移量*@returns*/functionae
- npm_config_xxx
Shellphon
npm前端node.js
//package.json{"scripts":{"log":"nodeindex.js",}}//index.jsfunctionlogProcessEnv(key){console.log(`process.env['${key}']`,process.env[key]);}logProcessEnv('npm_config_foo');问题:`npmrunlog`和`yarnlog`有没有
- lua脚本动态插入script标签 在nginx层面
after you
luanginxjunit
body_filter_by_lua_block{localpin=ngx.var.cookie_jrapp_jsfGateway_testPinlocaldomain=ngx.var.hostlocalscheme=ngx.var.schemelocaltitle="白条"localmatch=ngx.arg[1]:match("([^")ifmatchthentitle=matchendifn
- JavaScript----正则验证用户名密码等正确
鞠婧祎yamy
#JavaScriptjavascript前端开发语言
效果图jsfunction$(id){returndocument.getElementById(id);}functioncheckUser(){varuname=$("uname").value;uname=uname.trim();varuserp=$("unameWarn");userp.innerHTML="";varreg=/^[a-zA-Z][a-zA-Z0-9]{5}$/;varr
- 执行npm run build时报错from UglifyJs Unexpected token: name «_fs», expected: punc «;»
Jack_David
Node.jsNodenpm前端node.js
报错最近在开发前端项目时,npmrundev是可以正常执行的,但是执行npmrunbuild就报错js/chunk-7586894f.1110e9a8.jsfromUglifyJsUnexpectedtoken:name«_fs»,expected:punc«;»[js/chunk-7586894f.1110e9a8.js:3187,4]截图如下分析其实这里上面已经提示了,要更新yarn,执行一下
- 高通SDX35:nand flash适配
Gabriel.Tian
Linux驱动/应用开发linux高通驱动开发
目前使用的nandflash是JSFCCA5QHAFGA-405A4G1.8V8-bit一、XBL阶段boot_images/boot/QcomPkg/Library/NandCommonLib/flash_nand_config.cstaticstructflash_nand_paramssupported_nand_devices[]={/*JSCJSFCCA5QHAFGA-405Aflash
- java的(PO,VO,TO,BO,DAO,POJO)
Cb123456
VOTOBOPOJODAO
转:
http://www.cnblogs.com/yxnchinahlj/archive/2012/02/24/2366110.html
-------------------------------------------------------------------
O/R Mapping 是 Object Relational Mapping(对象关系映
- spring ioc原理(看完后大家可以自己写一个spring)
aijuans
spring
最近,买了本Spring入门书:spring In Action 。大致浏览了下感觉还不错。就是入门了点。Manning的书还是不错的,我虽然不像哪些只看Manning书的人那样专注于Manning,但怀着崇敬 的心情和激情通览了一遍。又一次接受了IOC 、DI、AOP等Spring核心概念。 先就IOC和DI谈一点我的看法。IO
- MyEclipse 2014中Customize Persperctive设置无效的解决方法
Kai_Ge
MyEclipse2014
高高兴兴下载个MyEclipse2014,发现工具条上多了个手机开发的按钮,心生不爽就想弄掉他!
结果发现Customize Persperctive失效!!
有说更新下就好了,可是国内Myeclipse访问不了,何谈更新...
so~这里提供了更新后的一下jar包,给大家使用!
1、将9个jar复制到myeclipse安装目录\plugins中
2、删除和这9个jar同包名但是版本号较
- SpringMvc上传
120153216
springMVC
@RequestMapping(value = WebUrlConstant.UPLOADFILE)
@ResponseBody
public Map<String, Object> uploadFile(HttpServletRequest request,HttpServletResponse httpresponse) {
try {
//
- Javascript----HTML DOM 事件
何必如此
JavaScripthtmlWeb
HTML DOM 事件允许Javascript在HTML文档元素中注册不同事件处理程序。
事件通常与函数结合使用,函数不会在事件发生前被执行!
注:DOM: 指明使用的 DOM 属性级别。
1.鼠标事件
属性  
- 动态绑定和删除onclick事件
357029540
JavaScriptjquery
因为对JQUERY和JS的动态绑定事件的不熟悉,今天花了好久的时间才把动态绑定和删除onclick事件搞定!现在分享下我的过程。
在我的查询页面,我将我的onclick事件绑定到了tr标签上同时传入当前行(this值)参数,这样可以在点击行上的任意地方时可以选中checkbox,但是在我的某一列上也有一个onclick事件是用于下载附件的,当
- HttpClient|HttpClient请求详解
7454103
apache应用服务器网络协议网络应用Security
HttpClient 是 Apache Jakarta Common 下的子项目,可以用来提供高效的、最新的、功能丰富的支持 HTTP 协议的客户端编程工具包,并且它支持 HTTP 协议最新的版本和建议。本文首先介绍 HTTPClient,然后根据作者实际工作经验给出了一些常见问题的解决方法。HTTP 协议可能是现在 Internet 上使用得最多、最重要的协议了,越来越多的 Java 应用程序需
- 递归 逐层统计树形结构数据
darkranger
数据结构
将集合递归获取树形结构:
/**
*
* 递归获取数据
* @param alist:所有分类
* @param subjname:对应统计的项目名称
* @param pk:对应项目主键
* @param reportList: 最后统计的结果集
* @param count:项目级别
*/
public void getReportVO(Arr
- 访问WEB-INF下使用frameset标签页面出错的原因
aijuans
struts2
<frameset rows="61,*,24" cols="*" framespacing="0" frameborder="no" border="0">
- MAVEN常用命令
avords
Maven库:
http://repo2.maven.org/maven2/
Maven依赖查询:
http://mvnrepository.com/
Maven常用命令: 1. 创建Maven的普通java项目: mvn archetype:create -DgroupId=packageName 
- PHP如果自带一个小型的web服务器就好了
houxinyou
apache应用服务器WebPHP脚本
最近单位用PHP做网站,感觉PHP挺好的,不过有一些地方不太习惯,比如,环境搭建。PHP本身就是一个网站后台脚本,但用PHP做程序时还要下载apache,配置起来也不太很方便,虽然有好多配置好的apache+php+mysq的环境,但用起来总是心里不太舒服,因为我要的只是一个开发环境,如果是真实的运行环境,下个apahe也无所谓,但只是一个开发环境,总有一种杀鸡用牛刀的感觉。如果php自己的程序中
- NoSQL数据库之Redis数据库管理(list类型)
bijian1013
redis数据库NoSQL
3.list类型及操作
List是一个链表结构,主要功能是push、pop、获取一个范围的所有值等等,操作key理解为链表的名字。Redis的list类型其实就是一个每个子元素都是string类型的双向链表。我们可以通过push、pop操作从链表的头部或者尾部添加删除元素,这样list既可以作为栈,又可以作为队列。
&nbs
- 谁在用Hadoop?
bingyingao
hadoop数据挖掘公司应用场景
Hadoop技术的应用已经十分广泛了,而我是最近才开始对它有所了解,它在大数据领域的出色表现也让我产生了兴趣。浏览了他的官网,其中有一个页面专门介绍目前世界上有哪些公司在用Hadoop,这些公司涵盖各行各业,不乏一些大公司如alibaba,ebay,amazon,google,facebook,adobe等,主要用于日志分析、数据挖掘、机器学习、构建索引、业务报表等场景,这更加激发了学习它的热情。
- 【Spark七十六】Spark计算结果存到MySQL
bit1129
mysql
package spark.examples.db
import java.sql.{PreparedStatement, Connection, DriverManager}
import com.mysql.jdbc.Driver
import org.apache.spark.{SparkContext, SparkConf}
object SparkMySQLInteg
- Scala: JVM上的函数编程
bookjovi
scalaerlanghaskell
说Scala是JVM上的函数编程一点也不为过,Scala把面向对象和函数型编程这两种主流编程范式结合了起来,对于熟悉各种编程范式的人而言Scala并没有带来太多革新的编程思想,scala主要的有点在于Java庞大的package优势,这样也就弥补了JVM平台上函数型编程的缺失,MS家.net上已经有了F#,JVM怎么能不跟上呢?
对本人而言
- jar打成exe
bro_feng
java jar exe
今天要把jar包打成exe,jsmooth和exe4j都用了。
遇见几个问题。记录一下。
两个软件都很好使,网上都有图片教程,都挺不错。
首先肯定是要用自己的jre的,不然不能通用,其次别忘了把需要的lib放到classPath中。
困扰我很久的一个问题是,我自己打包成功后,在一个同事的没有装jdk的电脑上运行,就是不行,报错jvm.dll为无效的windows映像,如截图
最后发现
- 读《研磨设计模式》-代码笔记-策略模式-Strategy
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换。策略模式让算法独立于使用它的客户而独立变化
简单理解:
1、将不同的策略提炼出一个共同接口。这是容易的,因为不同的策略,只是算法不同,需要传递的参数
- cmd命令值cvfM命令
chenyu19891124
cmd
cmd命令还真是强大啊。今天发现jar -cvfM aa.rar @aaalist 就这行命令可以根据aaalist取出相应的文件
例如:
在d:\workspace\prpall\test.java 有这样一个文件,现在想要将这个文件打成一个包。运行如下命令即可比如在d:\wor
- OpenJWeb(1.8) Java Web应用快速开发平台
comsci
java框架Web项目管理企业应用
OpenJWeb(1.8) Java Web应用快速开发平台的作者是我们技术联盟的成员,他最近推出了新版本的快速应用开发平台 OpenJWeb(1.8),我帮他做做宣传
OpenJWeb快速开发平台以快速开发为核心,整合先进的java 开源框架,本着自主开发+应用集成相结合的原则,旨在为政府、企事业单位、软件公司等平台用户提供一个架构透
- Python 报错:IndentationError: unexpected indent
daizj
pythontab空格缩进
IndentationError: unexpected indent 是缩进的问题,也有可能是tab和空格混用啦
Python开发者有意让违反了缩进规则的程序不能通过编译,以此来强制程序员养成良好的编程习惯。并且在Python语言里,缩进而非花括号或者某种关键字,被用于表示语句块的开始和退出。增加缩进表示语句块的开
- HttpClient 超时设置
dongwei_6688
httpclient
HttpClient中的超时设置包含两个部分:
1. 建立连接超时,是指在httpclient客户端和服务器端建立连接过程中允许的最大等待时间
2. 读取数据超时,是指在建立连接后,等待读取服务器端的响应数据时允许的最大等待时间
在HttpClient 4.x中如下设置:
HttpClient httpclient = new DefaultHttpC
- 小鱼与波浪
dcj3sjt126com
一条小鱼游出水面看蓝天,偶然间遇到了波浪。 小鱼便与波浪在海面上游戏,随着波浪上下起伏、汹涌前进。 小鱼在波浪里兴奋得大叫:“你每天都过着这么刺激的生活吗?简直太棒了。” 波浪说:“岂只每天过这样的生活,几乎每一刻都这么刺激!还有更刺激的,要有潮汐变化,或者狂风暴雨,那才是兴奋得心脏都会跳出来。” 小鱼说:“真希望我也能变成一个波浪,每天随着风雨、潮汐流动,不知道有多么好!” 很快,小鱼
- Error Code: 1175 You are using safe update mode and you tried to update a table
dcj3sjt126com
mysql
快速高效用:SET SQL_SAFE_UPDATES = 0;下面的就不要看了!
今日用MySQL Workbench进行数据库的管理更新时,执行一个更新的语句碰到以下错误提示:
Error Code: 1175
You are using safe update mode and you tried to update a table without a WHERE that
- 枚举类型详细介绍及方法定义
gaomysion
enumjavaee
转发
http://developer.51cto.com/art/201107/275031.htm
枚举其实就是一种类型,跟int, char 这种差不多,就是定义变量时限制输入的,你只能够赋enum里面规定的值。建议大家可以看看,这两篇文章,《java枚举类型入门》和《C++的中的结构体和枚举》,供大家参考。
枚举类型是JDK5.0的新特征。Sun引进了一个全新的关键字enum
- Merge Sorted Array
hcx2013
array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:You may assume that nums1 has enough space (size that is
- Expression Language 3.0新特性
jinnianshilongnian
el 3.0
Expression Language 3.0表达式语言规范最终版从2013-4-29发布到现在已经非常久的时间了;目前如Tomcat 8、Jetty 9、GlasshFish 4已经支持EL 3.0。新特性包括:如字符串拼接操作符、赋值、分号操作符、对象方法调用、Lambda表达式、静态字段/方法调用、构造器调用、Java8集合操作。目前Glassfish 4/Jetty实现最好,对大多数新特性
- 超越算法来看待个性化推荐
liyonghui160com
超越算法来看待个性化推荐
一提到个性化推荐,大家一般会想到协同过滤、文本相似等推荐算法,或是更高阶的模型推荐算法,百度的张栋说过,推荐40%取决于UI、30%取决于数据、20%取决于背景知识,虽然本人不是很认同这种比例,但推荐系统中,推荐算法起的作用起的作用是非常有限的。
就像任何
- 写给Javascript初学者的小小建议
pda158
JavaScript
一般初学JavaScript的时候最头痛的就是浏览器兼容问题。在Firefox下面好好的代码放到IE就不能显示了,又或者是在IE能正常显示的代码在firefox又报错了。 如果你正初学JavaScript并有着一样的处境的话建议你:初学JavaScript的时候无视DOM和BOM的兼容性,将更多的时间花在 了解语言本身(ECMAScript)。只在特定浏览器编写代码(Chrome/Fi
- Java 枚举
ShihLei
javaenum枚举
注:文章内容大量借鉴使用网上的资料,可惜没有记录参考地址,只能再传对作者说声抱歉并表示感谢!
一 基础 1)语法
枚举类型只能有私有构造器(这样做可以保证客户代码没有办法新建一个enum的实例)
枚举实例必须最先定义
2)特性
&nb
- Java SE 6 HotSpot虚拟机的垃圾回收机制
uuhorse
javaHotSpotGC垃圾回收VM
官方资料,关于Java SE 6 HotSpot虚拟机的garbage Collection,非常全,英文。
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning
&