今天郁闷了1小时. 需求是这样的: <s:radio  list="#{0:'男',1:'女'}" value="member.sex" id="sex_id" name="member.sex"  listKey="key" listValue="value" onclick="checkSex(this.value)"></s:radio>…
前台:<input type=" id="tg" name="state"/> <a style="cursor:pointer;" onclick="selected(0)">通过</a> <input type=" id="th" name="state"/> <a style="cursor:poi…
一.加#号取值和不加#号取值的解说 1.s:property 标签——value属性使用事项 1)涉及问题:取值时什么时候该加#,什么时候不加? 2)介绍 <s:property value="...."/> 用于获取ognlcontext对象中的属性值,亦称为数据标签.其中value的值为具体的属性名称. 获取值时,一般有两种情况: 1)在获取request/session/application/attr/parameters这五个范围时,需要明确指定范围,比如 <…
定义 Storage 对象,对象有get(取值), set(设置), add(加入新值)三个方法 const Storage = {} Storage.get = function (name) { return JSON.parse(localStorage.getItem(name)) } Storage.set = function (name, val) { localStorage.setItem(name, JSON.stringify(val)) } Storage.add = f…
随着Jquery的作用越来越大,使用的朋友也越来越多.在Web中,由于CheckBox. Radiobutton . DropDownList等控件使用的频率比较高,就关系到这些控件在Jquery中的操作问题由于Jquery的版本更新很快,代码的写法也改变了许多,以下Jquery代码适query1.4版本以上Radio 1.获取选中值,三种方法都可以: $('input:radio:checked').val(): $("input[type='radio']:checked").va…
1.获取选中值,三种方法都可以: $('input:radio:checked').val(): $("input[type='radio']:checked").val(); $("input[name='rd']:checked").val(); 2.设置第一个Radio为选中值: $('input:radio:first').attr('checked', 'checked'); 或者 $('input:radio:first').attr('checked'…
jQuery获取Select选择的Text和Value: 1. $("#select_id").change(function(){//code...});    //为Select添加事件,当选择其中一项时触发 2. var checkText=$("#select_id").find("option:selected").text();   //获取Select选择的Text 3. var checkValue=$("#select…
peaks; axis tight  %Set the axis limits to equal the range of the data  axis square axis 'auto x'  %x轴坐标上下限自动调整 axis off    %Plot a surface without displaying the axes lines and background. set(gca,'Visible','off');   %消除坐标轴,显示范围的大小没有改变,同上句     %更多特性…
设置cookie function cookie(key, value, options) { let days let time let result // A key and value were given. Set cookie. if (arguments.length > 1 && String(value) !== '[object Object]') { // Enforce object options = Object.assign({}, options) if…
博客园中有一篇文章对web.config的结构做了很详细的介绍,原文见 http://www.cnblogs.com/gaoweipeng/archive/2009/05/17/1458762.html. 我只介绍一下对该文件中的数据的取用. 假设在web.config中有如下配置: <appSettings> <add key="AKWebservice" value="http://58.252.73.14:5236/pms_service/rest/&…