添加一个设备树节点,并且设置status = "disabled",disabled是在何时生效的?

设备节点中,设置status = "disabled",能否进入 probe函数,在什么时候被读取并disable。具体的源码在哪里?

1个回答

JohnnyDengy
k文 就一垃圾的回答!!
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
当文本框的 disabled="disabled"时,如何触发单击事件呢?

文本框不可编辑,但是我想用jquery触发click事件,来完成某些操作 [code="java"] $("#txt4").click(function(){ top=$(this).offset().top; left=$(this).offset().left; height=$(this).height(); width=$(this).width(); J.dialog.get( 'test1', {drag:false,width:700,foot:false,skin:'extjs',left:left,top:top+height+4, page: '../form.html'} ); }); }[/code] <input type="text" id="c" value="lhgcore" disabled="disabled"/>

EXT树子节点设置disabled为true后为什么还可以点击触发click事件

<pre name="code" class="js">items:[{ region:'west',//西面放入面板 xtype:'treepanel', split:true,//设置分隔条 collapsible:true,//可以进行缩进 collapseMode:'mini',//设置左右缩减 minWidth:150, maxWidth:300, width:200, root:new Ext.tree.AsyncTreeNode({ text:'权限管理', iconCls:'purviewManagerIcon', expanded:true,//子节点展开 children:[{ text:'用户管理', disabled:true, leaf:true,//true设置此节点为叶子节点 qtip:'用户管理',//提示信息 listeners:{ 'click':function(){ alert(); } } },{ text:'权限管理', iconCls:'purviewManagerIcon', leaf:true,//true设置此节点为叶子节点 qtip:'权限管理',//提示信息 listeners:{ click:function(){ alert(); } } }]</pre> <p> 为什么效果是下边图片的结果 用户管理子节点是灰的 还可以进行点击弹出对话框,怎样达到子节点是灰的 不可以点击(注click事件保留的情况下,因为以后要写的代码会用到click事件)</p>

jquery中怎么禁用 table某一行的select标签 而不是全部禁用,select只有name属性 没有id?

![图片说明](https://img-ask.csdn.net/upload/201812/24/1545640513_566623.png) 我现在只想禁用第二第三行的select标签,其他的不禁用 var tableObj = $('#rvzyhoeynpui').children('table').children("tbody:last").children("tr"); for (var i=0; i< tableObj.length; i++) { tableObj.children("td").find("select[name='purchase_type']").eq(i).attr("disabled","disabled"); } 循环table 然后设定某一行disable 设置不上 $(function(){ $("select").each(function () { $("select[name='name']").attr("disabled","disabled"); }); }); 这种又会把所有控件全部设置不好用

php如何在提交回声和禁用文本框等内容时添加我记录的信息

<div class="post-text" itemprop="text"> <p>ok this is my code the part that makes it hard for me to record is the disable part and i want my textbox to be disabled and have my "logged in account" information to be automatically inputted</p> <pre><code>&lt;div class="form-group"&gt; &lt;label for="text"&gt; Customer Name&lt;/label&gt; **&lt;input type="text" value=" &lt;?php echo $row['userfirstName']; echo '&amp;nbsp;'; echo $row['userlastName']; ?&gt; " class="form-control" id="customername" name="customername" disabled&gt;** &lt;/div&gt; &lt;div class="form-group"&gt; &lt;label for="text"&gt; Mailing Address&lt;/label&gt; **&lt;input type="text" value=" &lt;?php echo $row['userAddress']; ?&gt; " class="form-control" id="customeraddress" name="customeraddress" disabled&gt;** &lt;/div&gt; </code></pre> <p><img src="https://i.stack.imgur.com/s5zoW.png" alt="Photo"></p> </div>

elasticsearch导入template问题

最近我正在学习ELK,但我向elasticsearch中导入模板时出错,错误输出如下 {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: template is missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: template is missing;"},"status":400} 我使用的导入模板命令是 ``` curl -XPUT "http://localhost:9200/_template/wifi" -d@wifi1.json ``` 模板内容为 ``` { "wifi": { "order": 0, "template": "wifi-*", "settings": { "index": { "refresh_interval": "5s" } }, "mappings": { "_default_": { "dynamic_templates": [ { "message_field": { "mapping": { "fielddata": { "format": "disabled" }, "index": "analyzed", "omit_norms": true, "type": "string" }, "match_mapping_type": "string", "match": "message" } } , { "string_fields": { "mapping": { "fielddata": { "format": "disabled" }, "index": "analyzed", "omit_norms": true, "type": "string", "fields": { "raw": { "ignore_above": 256, "index": "not_analyzed", "type": "string" } } }, "match_mapping_type": "string", "match": "*" } } ], "_all": { "omit_norms": true, "enabled": true }, "properties": { "@timestamp": { "type": "date" }, "lat":{ "type":"float" }, "lon":{ "type":"float" }, "geoip": { "dynamic": true, "properties": { "ip": { "type": "ip" }, "latitude": { "type": "float" }, "location": { "type": "geo_point" }, "longitude": { "type": "float" } } }, "data":{ "dynamic":true, "properties":{ "range":{ "type":"float" } } }, "@version": { "index": "not_analyzed", "type": "string" } } } }, "aliases": { } } } ``` 另外我使用的elasticsearch版本为2.4.1 希望走过路过的大神,兄台能帮小生解决一下这个问题,在下不胜感激

如何用beautifulsoup提取下面格式中的全部选项????

``` <div class="st_content"> <span><input id="1" name="radiobutton206" type="radio" value="radiobutton" disabled="disabled"/></span> A、 国务院</br> <span><input id="1" name="radiobutton206" type="radio" value="radiobutton" disabled="disabled"/></span> B、 国务院劳动部门</br> <span><input id="1" name="radiobutton206" type="radio" value="radiobutton" disabled="disabled"/></span> C、 国务院人事部门</br> <span><input id="1" name="radiobutton206" type="radio" value="radiobutton" checked="checked" disabled="disabled"/></span> D、 国务院卫生行政部门</br> <span><input id="1" name="radiobutton206" type="radio" value="radiobutton" disabled="disabled"/></span> E、 国务院教育行政部门</br> </div> ```

jquery option设为disabled后怎么放开

``` $("#selectID option:[value='XX']").attr("disabled","disabled") ``` 写了这句想放开 attr里该写什么 ,

为什么为“select-option”字段添加一个类使“禁用”功能不起作用?

<div class="post-text" itemprop="text"> <p>I am working on a PHP project. After adding class <code>chosen-select</code> for the <code>&lt;select&gt;</code> field. The disable function does not working. If it is without the <code>chosen-select</code> class, it performed disabled function very well but there is no CSS style for the field anymore. Is there any expert who is willing to give some valuable comment to me?</p> <p>Here is my code:</p> <pre><code> &lt;div class="col-lg-6 col-md-6 col-sm-5 col-xs-12"&gt; &lt;div class="field-holder"&gt; &lt;input type="text" placeholder="&lt;?php _e( 'Restaurant Name', 'foodbakery' ) ?&gt;" name="search_title" id="search_rest" onkeyup="disableDropDown()" value="&lt;?php echo esc_html( $search_title ) ?&gt;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="col-lg-4 col-md-4 col-sm-5 col-xs-12"&gt; &lt;div class="field-holder"&gt; &lt;div class="select-holder"&gt; &lt;select data-placeholder="" class="chosen-select" id="search_cusine" name="search_cusine" onchange="disableTextField()"&gt; &lt;?php global $foodbakery_plugin_options; $selected_fileds = isset( $foodbakery_plugin_options['default_cousins_list'] ) ? $foodbakery_plugin_options['default_cousins_list'] : ''; foreach ( $selected_fileds as $val ) { $restaurant_type_cate = get_term_by( 'slug', $val, 'restaurant-category' ); echo '&lt;option value='. esc_html( $restaurant_type_cate-&gt;name ) .'&gt;' . esc_html( $restaurant_type_cate-&gt;name ) . '&lt;/option&gt;'; } ?&gt; &lt;/select&gt; &lt;script&gt; function disableDropDown() { var x = document.getElementById("search_rest").value; if (x != ''){ document.getElementById("search_cusine").disabled= true; } else{ document.getElementById("search_cusine").disabled = false; } } &lt;/script&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> </div>

移除disabled属性失效!!!

![图片说明](https://img-ask.csdn.net/upload/201702/09/1486610686_680324.png) ![图片说明](https://img-ask.csdn.net/upload/201702/09/1486610696_939576.png) ![图片说明](https://img-ask.csdn.net/upload/201702/09/1486610708_764014.png)

跪求 weui 这个里面的<script type="text/html> 这个东西什么时候执行

``` ``` <script type="text/html" id="tpl_button"> <div class="page"> <div class="page__hd"> <h1 class="page__title">Button</h1> <p class="page__desc">按钮</p> </div> <div class="page__bd page__bd_spacing"> <div class="button-sp-area"> <a href="javascript:;" class="weui-btn weui-btn_primary">页面主操作</a> <a href="javascript:;" class="weui-btn weui-btn_primary weui-btn_loading"><i class="weui-loading"></i>页面主操作</a> <a href="javascript:;" class="weui-btn weui-btn_disabled weui-btn_primary">页面主操作</a> <a href="javascript:;" class="weui-btn weui-btn_default">页面次要操作</a> <a href="javascript:;" class="weui-btn weui-btn_default weui-btn_loading"><i class="weui-loading"></i>页面次操作</a> <a href="javascript:;" class="weui-btn weui-btn_disabled weui-btn_default">页面次要操作</a> <a href="javascript:;" class="weui-btn weui-btn_warn">警告类操作</a> <a href="javascript:;" class="weui-btn weui-btn_warn weui-btn_loading"><i class="weui-loading"></i>警告类操作</a> <a href="javascript:;" class="weui-btn weui-btn_disabled weui-btn_warn">警告类操作</a> </div> <div class="button-sp-area"> <a href="javascript:;" class="weui-btn weui-btn_block weui-btn_primary">页面主操作</a> <a href="javascript:;" class="weui-btn weui-btn_block weui-btn_default">页面次要操作</a> <a href="javascript:;" class="weui-btn weui-btn_block weui-btn_warn">警告类操作</a> </div> <div class="button-sp-area cell"> <a href="javascript:;" class="weui-btn_cell weui-btn_cell-default">普通行按钮</a> <a href="javascript:;" class="weui-btn_cell weui-btn_cell-primary">强调行按钮</a> <a href="javascript:;" class="weui-btn_cell weui-btn_cell-primary"> <img class="weui-btn_cell__icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII="> 强调行按钮 </a> <a href="javascript:;" class="weui-btn_cell weui-btn_cell-warn">警告行按钮</a> </div> <div class="button-sp-area"> <a href="javascript:;" class="weui-btn weui-btn_plain-default">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_plain-default weui-btn_plain-disabled">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_plain-primary">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_plain-primary weui-btn_plain-disabled">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_primary">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_default">按钮</a> <a href="javascript:;" class="weui-btn weui-btn_mini weui-btn_warn">按钮</a> </div> </div> <div class="page__ft"> <a href="javascript:home()"><img src="./images/icon_footer_link.png" /></a> </div> </div> </script> <script type="text/html" id="tpl_list"> <div class="page"> <div class="page__hd"> <h1 class="page__title">List</h1> <p class="page__desc">列表</p> </div> <div class="page__bd"> <div class="weui-cells__title">带说明的列表项</div> <div class="weui-cells"> <div class="weui-cell"> <div class="weui-cell__bd"> <p>标题文字</p> </div> <div class="weui-cell__ft">说明文字</div> </div> <div class="weui-cell weui-cell_swiped"> <div class="weui-cell__bd" style="transform: translateX(-68px)"> <div class="weui-cell"> <div class="weui-cell__bd"> <p>标题文字</p> </div> <div class="weui-cell__ft">说明文字</div> </div> </div> <div class="weui-cell__ft"> <a class="weui-swiped-btn weui-swiped-btn_warn" href="javascript:">删除</a> </div> </div> </div> <div class="weui-cells__title">带图标、说明的列表项</div> <div class="weui-cells"> <div class="weui-cell weui-cell_example"> <div class="weui-cell__hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII=" alt="" style="width:20px;margin-right:16px;display:block"></div> <div class="weui-cell__bd"> <p>标题文字</p> </div> <div class="weui-cell__ft">说明文字</div> </div> <div class="weui-cell weui-cell_example"> <div class="weui-cell__hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII=" alt="" style="width:20px;margin-right:16px;display:block"></div> <div class="weui-cell__bd"> <p>标题文字</p> </div> <div class="weui-cell__ft">说明文字</div> </div> </div> <div class="weui-cells__title">带跳转的列表项</div> <div class="weui-cells"> <a class="weui-cell weui-cell_access" href="javascript:;"> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft"> </div> </a> <a class="weui-cell weui-cell_access" href="javascript:;"> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft"> </div> </a> </div> <div class="weui-cells__title">带说明、跳转的列表项</div> <div class="weui-cells"> <a class="weui-cell weui-cell_access" href="javascript:;"> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft">说明文字</div> </a> <a class="weui-cell weui-cell_access" href="javascript:;"> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft">说明文字</div> </a> </div> <div class="weui-cells__title">带图标、说明、跳转的列表项</div> <div class="weui-cells"> <a class="weui-cell weui-cell_access weui-cell_example" href="javascript:;"> <div class="weui-cell__hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII=" alt="" style="width:20px;margin-right:16px;display:block"></div> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft">说明文字</div> </a> <a class="weui-cell weui-cell_access weui-cell_example" href="javascript:;"> <div class="weui-cell__hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII=" alt="" style="width:20px;margin-right:16px;display:block"></div> <div class="weui-cell__bd"> <p>cell standard</p> </div> <div class="weui-cell__ft">说明文字</div> </a> </div> </div> <div class="page__ft"> <a href="javascript:home()"><img src="./images/icon_footer_link.png" /></a> </div> </div> ``` ```

在PHP中取消设置JSON的特定属性

<div class="post-text" itemprop="text"> <p><strong>JSON</strong></p> <pre><code>{ "pages":{ "index.php":{ "status":"enabled", "theme":"dark", "identifier":"KMS" }, "google.php":{ "status":"enabled", "theme":"dark", "identifier":"KMS" }, "doodle.php":{ "status":"disabled", "theme":"light", "identifier":"transact" } } } </code></pre> <p>In my PHP code I write </p> <pre><code>$jsona = file_get_contents("../pages.json"); $jsonb = json_decode($jsona,true); $data = $jsonb['pages']; </code></pre> <p>Now if I want to delete the property <code>"index.php"</code> I write <code>unset($data["index.php"]</code> and then I write</p> <pre><code>file_put_contents("../pages.json",json_encode($data)); </code></pre> <p>Though after going to my JSON file it deletes <code>"pages"</code> </p> <p><strong>actual outcome</strong></p> <pre><code>{"google.php":{"status":"enabled","theme":"dark","identifier":"KMS"},"doodle.php":{"status":"disabled","theme":"light","identifier":"transact"}} </code></pre> <p>I need to just unset a specific child property of pages. Such as <code>"google.php"</code> or <code>"doodle.php"</code>. I checked what is being posted as <code>$data[$page]</code> and it is the specific element. So why is it unsetting <code>pages</code> and leaving the rest of the properties?</p> </div>

求指导怎样在一个button按钮里面调用两个js方法,第一个没有执行完,第二个不允许执行。

function MustWrite(){ var a = document.getElementById("stopReason").value; if(a==""){ alert("必填项,请重新输入"); return false; } function stopProtocol(){ //if(confirm("是否终止协议?")==true) //{ var timeOut = 1000*60*20;//20分钟 var step = 3; var state = 9; var stopReason = document.stop.stopReason.value; jQuery().wiwjAjax({ url:"/5i5j/Business/ContractProtocol/ChangeStepDo.5i5j", data:{"id":${request.id},"state":state,"step":step,"stopReason":stopReason}, isuseDefined:false, debug:false, timeout:timeOut, success:function(data,obj){ if(obj['code']==="1"){ alert("操作成功"); }else{ alert("操作失败!"); } parent.PageNext("${Root.page}"); }, start:function(){ $("#passButton").attr("disabled","disabled"); $("#updateButton").attr("disabled","disabled"); $("#endButton").attr("disabled","disabled"); $("#endChangeButton").attr("disabled","disabled"); }, end:function(){ } }); //} } ; } <input type="button" value="确认" onclick="MustWrite();stopProtocol()"> 我这有两个js方法,怎样在一个button按钮里面调用两个js方法,第一个没有执行完,第二个不允许执行。

在后台如何获取Repeater控件中绑定的值 如<%#Eval("tiid") %>的值

``` <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="AddTestContent.aspx.cs" Inherits="ZaiXianKaoShi.AddTestContent" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <form runat="server"> <%--只能在详情中添加试题内容(此页面已得到考试编号)--%> <%--考试编号:--%> <%--题库id: 分值:--%> <div class="portlet box purple"> <div class="portlet-title"> <div class="caption"><i class="icon-cogs"></i>题目信息显示</div> </div> <div class="portlet-body"> <div id="sample_3_wrapper" class="dataTables_wrapper form-inline" role="grid"> <div class="row-fluid"> <div class="span6"> <div class="dataTables_length" id="sample_3_length"> <label> <div id="s2id_autogen3" class="select2-container m-wrap small"> <a href="javascript:void(0)" onclick="return false;" class="select2-choice" tabindex="-1"> <abbr class="select2-search-choice-close" style="display:none;"></abbr> <div> <b></b> </div> </a> </div> <select tabindex="-1" class="m-wrap small select2-offscreen" aria-controls="sample_3" size="1" name="sample_3_length"> <option selected="selected" value="5">5</option> <option value="10">10</option> <option value="20">20</option> <option value="-1">All</option> </select> 每页显示行数 </label> </div> </div> <div class="span6"><div id="Div2" class="dataTables_filter"><label>搜索: <input class="m-wrap small" aria-controls="sample_2" type="text"></label></div></div> </div> <table aria-describedby="sample_3_info" class="table table-striped table-bordered table-hover dataTable" id="sample_3"> <asp:Repeater id="Repeater2" runat="server"> <HeaderTemplate> <tr> <th>题库编号</th> <th>科目编号</th> <th>试题内容</th> <th>待选答案</th> <th>正确答案</th> <%--<th>分值</th>--%> <th>添加到试卷</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td><%#Eval("tiid") %></td> <td><%#Eval("subid") %></td> <td><%#Eval("content") %></td> <td><%#Eval("answerS") %></td> <td><%#Eval("answer") %></td> <%--<td><input type="text" name="fen" id="fen" style="width:20px; height:12px" runat="server" value="10" />分</td>--%> <td> <%--<a href="AddTestContent.aspx?tid=<%#Eval("tiid") %>&id=<%=Request["testid"] %>&subid=<%=Request["subid"] %>">添加</a>--%> <input type="submit" value="添加" /> </td> </tr> </ItemTemplate> </asp:Repeater> </table> <div class="row-fluid"> <div class="span6"> <div id="sample_3_info" class="dataTables_info" runat="server" style="color:#f00"> </div></div><div class="span6"> <div class="dataTables_paginate paging_bootstrap pagination"> <ul> <li class="prev disabled"><a href="#">← <span class="hidden-480"> Prev </span></a></li> <li class="active"> <a href="#">1</a></li><li><a href="#">2</a></li> <li><a href="#">3</a></li><li class="next"> <a href="#"><span class="hidden-480">Next</span> → </a> </li></ul></div></div></div></div> </div> </div> </form> </asp:Content> ```

在DataTables中迭代具有类名的单元格

<div class="post-text" itemprop="text"> <p>I have a datatable named results. 1 column has select dropdowns which all have a class of contracts. When the table is populated, I need to have all those select boxes be checked to assure they have a value greater than 0. I need this to happen on ALL rows and not just the visible ones.</p> <p>The following works, but only on the visible page:</p> <pre><code>jQuery(".contract").each(function() { id = jQuery(this).attr('id'); val = jQuery("#"+id).val() console.log("Preparing to check "+id+" with a value of "+val+" "); if(val==0) { validation(false, 'Required', 'div_'+id, 'input_'+id, false); } else { validation(true, '', 'div_'+id, 'input_'+id, false); } }) </code></pre> <p>Any insight on how to get the remainder of the pages to also use this block would be appreciated. I am using the FREE version of DataTables.</p> <p>UPDATE:</p> <p>ok, I can get to the cells using the following:</p> <pre><code>table.column(5).nodes().to$().each(function(index) { // jQuery(".contract").each(function() { var cell = table.cell(this).data(); id = jQuery(cell).attr('id'); }) </code></pre> <p>Within each cell is a select box with the following HTML:</p> <pre><code>&lt;div id="div_player_20"&gt; &lt;div id="input_player_20"&gt; &lt;select id="player_20"&gt; &lt;option value="0" disabled="disabled"&gt;-- None --&lt;/option&gt; &lt;option value="2" disabled="disabled"&gt;Lifetime&lt;/option&gt; &lt;option value="1" selected="selected" disabled="disabled"&gt;7 Year&lt;/option&gt; &lt;option value="3" disabled="disabled"&gt;6 Year&lt;/option&gt; &lt;option value="4" disabled="disabled"&gt;5 Year&lt;/option&gt; &lt;option value="5" disabled="disabled"&gt;4 Year&lt;/option&gt; &lt;option value="6" disabled="disabled"&gt;3 Year&lt;/option&gt; &lt;option value="7" disabled="disabled"&gt;2 Year&lt;/option&gt; &lt;option value="8" disabled="disabled"&gt;1 Year&lt;/option&gt; &lt;option value="9" disabled="disabled"&gt;Minor League&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>I need to be able to get the selected value from each dropdown (including those that are off the screen)</p> </div>

我想要给#list里面的第二个div里面的input添加属性该如何添加?

<div class="list" id="list"> <div class="item"> <input type="radio" name="item" title="this is radio text"> </div> <div class="item"> <input type="radio" name="item" title="this is radio checked"> </div> <div class="item"> <input type="radio" name="item" title="this is radio text"> </div> <div class="item"> <input type="radio" name="item" title="this is radio text"> </div> <div class="item"> <input type="radio" name="item" title="this is radio text"> </div> </div> ``` 我想要给#list里面的第二个div里面的input添加属性该如何添加? ```

实例化链码时出错Error: endorsement failure during query. response: status:500 message:"make sure the chaincode hellocc has been successfully instantiated and try again:

https://blog.csdn.net/weixin_44676392/article/details/87938415 根据上面的网址一步步测试的,结果出现了错误,希望大神能指导一下 ``` peer chaincode query -n hellocc -c '{"Args":["query","Hello"]}' -C myc ``` 运行之后出现错误 ``` root@d37396069819:/opt/gopath/src/chaincodedev# peer chaincode query -n hellocc -c '{"Args":["query","Hello"]}' -C myc 2020-03-30 05:06:10.880 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP 2020-03-30 05:06:10.883 UTC [viperutil] unmarshalJSON -> DEBU 002 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value 2020-03-30 05:06:10.886 UTC [viperutil] getKeysRecursively -> DEBU 003 Found real value for peer.BCCSP.Default setting to string SW 2020-03-30 05:06:10.890 UTC [viperutil] getKeysRecursively -> DEBU 004 Found map[string]interface{} value for peer.BCCSP.SW 2020-03-30 05:06:10.891 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value 2020-03-30 05:06:10.898 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Hash setting to string SHA2 2020-03-30 05:06:10.900 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: 256 2020-03-30 05:06:10.902 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.SW.Security setting to int 256 2020-03-30 05:06:10.905 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore 2020-03-30 05:06:10.907 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input 2020-03-30 05:06:10.911 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string 2020-03-30 05:06:10.913 UTC [viperutil] getKeysRecursively -> DEBU 00c Found map[string]interface{} value for peer.BCCSP.PKCS11 2020-03-30 05:06:10.916 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.921 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Library setting to <nil> <nil> 2020-03-30 05:06:10.923 UTC [viperutil] unmarshalJSON -> DEBU 00f Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.927 UTC [viperutil] getKeysRecursively -> DEBU 010 Found real value for peer.BCCSP.PKCS11.Label setting to <nil> <nil> 2020-03-30 05:06:10.928 UTC [viperutil] unmarshalJSON -> DEBU 011 Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.929 UTC [viperutil] getKeysRecursively -> DEBU 012 Found real value for peer.BCCSP.PKCS11.Pin setting to <nil> <nil> 2020-03-30 05:06:10.936 UTC [viperutil] unmarshalJSON -> DEBU 013 Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.937 UTC [viperutil] getKeysRecursively -> DEBU 014 Found real value for peer.BCCSP.PKCS11.Hash setting to <nil> <nil> 2020-03-30 05:06:10.939 UTC [viperutil] unmarshalJSON -> DEBU 015 Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.940 UTC [viperutil] getKeysRecursively -> DEBU 016 Found real value for peer.BCCSP.PKCS11.Security setting to <nil> <nil> 2020-03-30 05:06:10.943 UTC [viperutil] getKeysRecursively -> DEBU 017 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore 2020-03-30 05:06:10.944 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string: <nil> 2020-03-30 05:06:10.948 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to <nil> <nil> 2020-03-30 05:06:10.949 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[Default:SW SW:map[Hash:SHA2 Security:256 FileKeyStore:map[KeyStore:]] PKCS11:map[FileKeyStore:map[KeyStore:<nil>] Library:<nil> Label:<nil> Pin:<nil> Hash:<nil> Security:<nil>]]] 2020-03-30 05:06:10.952 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done 2020-03-30 05:06:10.956 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW] 2020-03-30 05:06:10.967 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts 2020-03-30 05:06:10.967 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem 2020-03-30 05:06:10.968 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts 2020-03-30 05:06:10.968 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem 2020-03-30 05:06:10.968 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts 2020-03-30 05:06:10.968 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem 2020-03-30 05:06:10.969 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts 2020-03-30 05:06:10.969 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory] 2020-03-30 05:06:10.969 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts 2020-03-30 05:06:10.969 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem 2020-03-30 05:06:10.970 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts 2020-03-30 05:06:10.971 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem 2020-03-30 05:06:10.971 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls 2020-03-30 05:06:10.971 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory] 2020-03-30 05:06:10.971 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory] 2020-03-30 05:06:10.976 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance 2020-03-30 05:06:10.977 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance 2020-03-30 05:06:10.977 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP 2020-03-30 05:06:10.977 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT 2020-03-30 05:06:10.982 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo= -----END CERTIFICATE----- 2020-03-30 05:06:10.984 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI -----END CERTIFICATE----- 2020-03-30 05:06:11.105 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI -----END CERTIFICATE----- 2020-03-30 05:06:11.117 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE----- MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI -----END CERTIFICATE----- 2020-03-30 05:06:11.118 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC 2020-03-30 05:06:11.120 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity 2020-03-30 05:06:11.131 UTC [grpc] Printf -> DEBU 036 parsed scheme: "" 2020-03-30 05:06:11.131 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme 2020-03-30 05:06:11.131 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}] 2020-03-30 05:06:11.132 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first" 2020-03-30 05:06:11.132 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc420285c30, CONNECTING 2020-03-30 05:06:11.141 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc420285c30, READY 2020-03-30 05:06:11.144 UTC [grpc] Printf -> DEBU 03c parsed scheme: "" 2020-03-30 05:06:11.148 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme 2020-03-30 05:06:11.148 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 <nil>}] 2020-03-30 05:06:11.148 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first" 2020-03-30 05:06:11.148 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc420196160, CONNECTING 2020-03-30 05:06:11.155 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc420196160, READY 2020-03-30 05:06:11.157 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity 2020-03-30 05:06:11.161 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 043 java chaincode disabled 2020-03-30 05:06:11.161 UTC [msp/identity] Sign -> DEBU 044 Sign: plaintext: 0ACB070A6308031A0B08C3FC85F40510...1A0E0A0571756572790A0548656C6C6F 2020-03-30 05:06:11.162 UTC [msp/identity] Sign -> DEBU 045 Sign: digest: C1E1022BA3D653B591168C96B600A8F22814B38F87C5944FF2797D1F6849D710 Error: endorsement failure during query. response: status:500 message:"make sure the chaincode hellocc has been successfully instantiated and try again: getccdata myc/hellocc responded with error: could not find chaincode with name 'hellocc'" ``` 各种方法都试过了 不知道怎么解决这个问题了

想要帮助提交选项卡式表单向导

<div class="post-text" itemprop="text"> <p>This is a simple script for creating a tabbed form, I copied from somewhere in the web. Whenever I submit, at the last step, it throws an alert, that the form has been submitted. I want the form to submit to the url in form's action. The calling class: </p> <pre><code> $(".number-tab-steps").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '&lt;span class="step"&gt;#index#&lt;/span&gt; #title#', labels: {finish: "Submit"}, onFinished: function (a, b) { alert("Form submitted.") } }), $(".icons-tab-steps").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '&lt;span class="step"&gt;#index#&lt;/span&gt; #title#', labels: {finish: "Submit"}, onFinished: function (a, b) { alert("Form submitted.") } }), $(".vertical-tab-steps").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", stepsOrientation: "vertical", titleTemplate: '&lt;span class="step"&gt;#index#&lt;/span&gt; #title#', labels: {finish: "Submit"}, onFinished: function (a, b) { alert("Form submitted.") } }); var form = $(".steps-validation").show(); $(".steps-validation").steps({ headerTag: "h6", bodyTag: "fieldset", transitionEffect: "fade", titleTemplate: '&lt;span class="step"&gt;#index#&lt;/span&gt; #title#', labels: {finish: "Submit"}, onStepChanging: function (a, b, c) { return b &gt; c || !(3 === c &amp;&amp; Number($("#age-2").val()) &lt; 18) &amp;&amp; (b &lt; c &amp;&amp; (form.find(".body:eq(" + c + ") label.error").remove(), form.find(".body:eq(" + c + ") .error").removeClass("error")), form.validate().settings.ignore = ":disabled,:hidden", form.valid()) }, onFinishing: function (a, b) { return form.validate().settings.ignore = ":disabled", form.valid() }, onFinished: function (a, b) { alert("Submitted!") } }), $(".steps-validation").validate({ ignore: "input[type=hidden]", errorClass: "danger", successClass: "success", highlight: function (a, b) { $(a).removeClass(b) }, unhighlight: function (a, b) { $(a).removeClass(b) }, errorPlacement: function (a, b) { a.insertAfter(b) }, rules: {email: {email: !0}} }), $(".datetime").daterangepicker({timePicker: !0, timePickerIncrement: 30, locale: {format: "MM/DD/YYYY h:mm A"}}); </code></pre> <p>Any Help would be deeply appreciated. Thanks</p> </div>

Ajax和switch

<div class="post-text" itemprop="text"> <p>I have a problem with this.</p> <p>index.php</p> <pre><code>&lt;script type="text/javascript"&gt; function edit(str){ var xmlhttp; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200) document.getElementById("editdialog").innerHTML=conection.responseText; $( "#editdialog" ).dialog({ autoOpen: true, width: 425 }); } xmlhttp.open("GET","edit.php?id="+str,true); xmlhttp.send(); } &lt;/script&gt; $query=mysql_result(SELECT * FROM paises) while ($row = mysql_fetch_assoc($query)) { echo $row['pais']; echo "&lt;a href=\"#\" onclick=\"edit('".$row["ICAO"]."')\"&gt;Edit&lt;/a&gt;"; } ?&gt; &lt;div id="editdialog" title="Edit"&gt;&lt;/div&gt; </code></pre> <p>and the edit.php file:</p> <pre><code> &lt;script src="./jquery.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.widget.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.button.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.core.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.widget.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.mouse.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.button.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.draggable.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.position.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.resizable.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.dialog.js"&gt;&lt;/script&gt; &lt;script src="./ui/jquery.ui.effect.js"&gt;&lt;/script&gt; &lt;script&gt; $(function() { $("#editaircraft") .button() .click(function(event) { }); }); &lt;/script&gt; &lt;?php require_once ('config.php'); $icao = $_REQUEST["icao"]; echo '&lt;tr&gt;&lt;td class="forms"&gt;Number Classes:&lt;/td&gt;&lt;td&gt;&lt;select id="numberclasses" name="numberclasses"&gt;'; echo "&lt;option value='0'&gt;Select Number of Classes&lt;/option&gt;"; echo "&lt;option value='1'&gt;One Classes (Economy)&lt;/option&gt;"; echo "&lt;option value='2'&gt;Two Classes (Business &amp; Economy)&lt;/option&gt;"; echo "&lt;option value='3'&gt;Three Classes (First, Business &amp; Economy)&lt;/option&gt;"; echo '&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;'; echo '&lt;tr&gt;&lt;td class="forms"&gt;First Class Seats:&lt;/td&gt;&lt;td&gt;&lt;input disabled="disabled" type="text" id="firstclassseats" name="firstclassseats" size="30" value='; echo $row["FirstClassSeats"] . "&gt;&lt;/td&gt;&lt;/tr&gt;"; echo '&lt;tr&gt;&lt;td class="forms"&gt;Business Class Seats:&lt;/td&gt;&lt;td&gt;&lt;input disabled="disabled" type="text" id="businessclassseats" name="businessclassseats" size="30" value='; echo $row["BusinessClassSeats"] . "&gt;&lt;/td&gt;&lt;/tr&gt;"; echo '&lt;tr&gt;&lt;td class="forms"&gt;Economy Class Seats:&lt;/td&gt;&lt;td&gt;&lt;input disabled="disabled" type="text" id="economyclassseats" name="economyclassseats" size="30" value='; echo $row["EconomyClassSeats"] . "&gt;&lt;/td&gt;&lt;/tr&gt;"; ?&gt; &lt;script&gt; $("#numberclasses").change(function() { value = $(this).val(); str = parseInt(value); switch(str) { case 0: $(document).ready(function() { $("#firstclassseats").attr("disabled","disabled"); $("#businessclassseats").attr("disabled","disabled"); $("#economyclassseats").attr("disabled","disabled"); }); break; case 1: $(document).ready(function() { $("#economyclassseats").removeAttr('disabled'); $("#firstclassseats").attr("disabled","disabled"); $("#businessclassseats").attr("disabled","disabled"); }); break; case 2: $(document).ready(function() { $("#businessclassseats").removeAttr('disabled'); $("#economyclassseats").removeAttr('disabled'); $("#firstclassseats").attr("disabled","disabled"); }); break; case 3: $(document).ready(function() { $("#firstclassseats").removeAttr('disabled'); $("#businessclassseats").removeAttr('disabled'); $("#economyclassseats").removeAttr('disabled'); }); break; } }); &lt;/script&gt; &lt;?php echo "&lt;tr&gt;&lt;td&gt;&lt;input id='editaircraft' type='submit' value='Edit Aircraft'&gt;&lt;/td&gt;&lt;/tr&gt;"; echo "&lt;/table&gt;"; ?&gt; &lt;/form&gt; </code></pre> <p>The problem is this script:</p> <p></p> <pre><code>$("#numberclasses").change(function() { value = $(this).val(); str = parseInt(value); switch(str) { case 0: $(document).ready(function() { $("#firstclassseats").attr("disabled","disabled"); $("#businessclassseats").attr("disabled","disabled"); $("#economyclassseats").attr("disabled","disabled"); }); break; case 1: $(document).ready(function() { $("#economyclassseats").removeAttr('disabled'); $("#firstclassseats").attr("disabled","disabled"); $("#businessclassseats").attr("disabled","disabled"); }); break; case 2: $(document).ready(function() { $("#businessclassseats").removeAttr('disabled'); $("#economyclassseats").removeAttr('disabled'); $("#firstclassseats").attr("disabled","disabled"); }); break; case 3: $(document).ready(function() { $("#firstclassseats").removeAttr('disabled'); $("#businessclassseats").removeAttr('disabled'); $("#economyclassseats").removeAttr('disabled'); }); break; } }); &lt;/script&gt; </code></pre> <p>This script must activate and deactivate in function the selection of the select. But if I do this in the file all works perfect. But If I want to do it by the index.php with the Edit link Ajax opens the dialog but the script don´t work. I select the option but the inputs not change.</p> </div>

qs.stringfy()参数过多,会截取参数?

``` 如题,就是qs.stringfy的参数过多,序列化后导致后面的数据丢失!!!急 var params = qs.stringfy({ "id":"508", "type":0, "release_time":"", "data":[ { "item_id":"7965", "special_id":"508", "id":"caradv", "isDisabled":"1", "name":"轮播广告", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" } ], "show":false, "item_sort":"0", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7966", "special_id":"508", "id":"storeguide", "isDisabled":"1", "name":"店铺导航", "items":[ { "title":"导航1", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" }, { "title":"导航2", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" }, { "title":"导航3", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" }, { "title":"导航4", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" } ], "show":false, "item_sort":"1", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7967", "special_id":"508", "id":"caradv", "isDisabled":"1", "name":"轮播广告", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"" } ], "show":false, "item_sort":"2", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7968", "special_id":"508", "id":"showcase5", "isDisabled":"1", "name":"橱窗(一行三列)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"3", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7969", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"4", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7970", "special_id":"508", "id":"videoplate", "isDisabled":"1", "name":"视频板块", "items":[ { "title":"", "radio":"1", "videosrc":"", "videoContent":"", "videoImagesrc":"", "inde":"" } ], "show":false, "item_sort":"5", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7971", "special_id":"508", "id":"commodity2", "isDisabled":"1", "name":"商品滑动", "items":[ { "goods_commonid":"", "title":"" } ], "show":false, "item_sort":"6", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59", "comArr":[ ] }, { "item_id":"7972", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"7", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7973", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"8", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7974", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"9", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7975", "special_id":"508", "id":"commodity2", "isDisabled":"1", "name":"商品滑动", "items":[ { "goods_commonid":"", "title":"" } ], "show":false, "item_sort":"10", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59", "comArr":[ ] }, { "item_id":"7976", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"11", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7977", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"12", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7978", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"13", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7979", "special_id":"508", "id":"commodity", "isDisabled":"1", "name":"商品板块", "items":[ { "goods_commonid":"", "title":"", "radio":"1" } ], "show":false, "item_sort":"14", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59", "comArr":[ ] }, { "item_id":"7980", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"15", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7981", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"16", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7982", "special_id":"508", "id":"commodity", "isDisabled":"1", "name":"商品板块", "items":[ { "goods_commonid":"", "title":"", "radio":"1" } ], "show":false, "item_sort":"17", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59", "comArr":[ ] }, { "item_id":"7983", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"18", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7984", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"19", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7985", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"20", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7986", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"21", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7987", "special_id":"508", "id":"showcase", "isDisabled":"1", "name":"橱窗(通栏)", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "title":"" } ], "show":false, "item_sort":"22", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" }, { "item_id":"7988", "special_id":"508", "id":"iconguide", "isDisabled":"1", "name":"图标导航", "items":[ { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "id":"1" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "id":"2" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "id":"3" }, { "imageUrl":"", "selectedRowText":"", "selectedType":"", "toLink":"", "type":"", "id":"4" } ], "show":false, "item_sort":"23", "store_id":"463", "add_time":"2020-05-22 09:33:31", "update_time":"2020-05-22 17:19:59" } ], "shop_id":"13071", "store_list":"", "shop_list":"", "search_disabled":"0" }) 序列化后:qs.parse(params) =>内容丢失了!!! ```

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

一文带你入门Java Stream流,太强了

两个星期以前,就有读者强烈要求我写一篇 Java Stream 流的文章,我说市面上不是已经有很多了吗,结果你猜他怎么说:“就想看你写的啊!”你看你看,多么苍白的喜欢啊。那就“勉为其难”写一篇吧,嘻嘻。 单从“Stream”这个单词上来看,它似乎和 java.io 包下的 InputStream 和 OutputStream 有些关系。实际上呢,没毛关系。Java 8 新增的 Stream 是为...

立即提问
相关内容推荐