eclipse 环境配置 之 编码设置 1. 设置新建jsp页面默认编码为 UTF-8 Window -> Preferences->General -> Content Types -> Text->JSP 最下面 default encoding 设置为 UTF-8 2. 设置文本文件编码为 UTF-8 Window -> Preferences -> G...
JS生成随机数 ///方式一: function randomNum1(n){ var res=""; for(var i = 0;i < n; i++){ res += Math.floor(Math.random()*10); } return res; } //方式二: var chars = ['0'
生成简单流水号 /** * @param sql 查询用sql语句 * @param digits 保留的位数 * @return */ public String getSequence(String sql, int digits){ long sequnce = 0; Object result = this.genericHibernateDao.getObjectBySQL(
easyui 行编辑, 改变相邻列的值 部分代码如下: {title:'品名',field:'goodsName',width:100,align:'center', editor:{ type:'combobox', options:{ valueField: 'eq_name',
数据的交互 Model层、 View层、 Controller层数据的交互同一层(通过资源的标识定位资源): 1. Java(服务层): 类中属性>>取值geter 、赋值sestter方法、赋值运算; 方法中参数>>引用传递;