??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩视频一区,久草在线免费福利,日韩国产精品视频http://www.aygfsteel.com/fiele/category/40448.htmlC的博?/description>zh-cnSun, 24 Aug 2014 00:47:46 GMTSun, 24 Aug 2014 00:47:46 GMT60ajax easy uiȝhttp://www.aygfsteel.com/fiele/archive/2014/08/20/417149.html半导?/dc:creator>半导?/author>Wed, 20 Aug 2014 02:38:00 GMThttp://www.aygfsteel.com/fiele/archive/2014/08/20/417149.htmlhttp://www.aygfsteel.com/fiele/comments/417149.htmlhttp://www.aygfsteel.com/fiele/archive/2014/08/20/417149.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/417149.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/417149.html
$("#childRightFrame1").attr('src',"http://www.baidu.com");
2?

取到easyui的tab下iframeҎ(gu)

http://liuna718-163-com.iteye.com/blog/1672182

3?a id="cb_post_title_url" class="postTitle2" >Easy UI 点击TAB 标签 h内容

$('#tabs').tabs({
        onSelect: function (title) {
            var currTab = $('#tabs').tabs('getTab', title);
            var iframe = $(currTab.panel('options').content);
            var src = iframe.attr('src');
            $('#tabs').tabs('update', { tab: currTab, options: { content: createFrame(src)} });
        }
    });

4、页面显C固定?!--StartFragment -->

{
      field : 'tools',
      title : '操作',
      width : 100,
      formatter:function(value,rowData,index){
      var values ="<input type='button' value='讑֤控制Ҏ(gu)'/>";
      return values
      }
      
     }
5、获取选中行的?br />
  1. var row = grid.datagrid('getSelected');   
  2. if (row){   
  3.   alert(row.id);   
  4. }  

 6?/p>

利用原生JSON对象Q将对象转ؓ(f)字符?/p>

 

 

  1. var jsObj = {};  
  2. jsObj.testArray = [1,2,3,4,5];  
  3. jsObj.name = 'CSS3';  
  4. jsObj.date = '8 May, 2011';  
  5. var str = JSON.stringify(jsObj);  
  6. alert(str);  

 

从JSON字符串{为对?

 

 

  1. var jsObj = {};  
  2. jsObj.testArray = [1,2,3,4,5];  
  3. jsObj.name = 'CSS3';  
  4. jsObj.date = '8 May, 2011';  
  5. var str = JSON.stringify(jsObj);  
  6. var str1 = JSON.parse(str);  
  7. alert(str1);  


]]>
在JSҎ(gu)中返回多个值的三种Ҏ(gu) ?/title><link>http://www.aygfsteel.com/fiele/archive/2014/08/18/417051.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Mon, 18 Aug 2014 00:23:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2014/08/18/417051.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/417051.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2014/08/18/417051.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/417051.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/417051.html</trackback:ping><description><![CDATA[<div class="wmqeeuq" id="article_content" class="article_content"> <p>在用JS~程中,有时需要在一个方法返回两个个或两个以上的数据Q用下面的几U方法都可以实现Q?/p> <p>1 使用数组的方式,如下Q?/p> <div id="wmqeeuq" class="wp_codebox"><pre><span style="color: blue"><</span><span style="color: #a31515">html</span><span style="color: blue">> <</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">title</span><span style="color: blue">></span><span>JS函数q回多个?-oec2003</span><span style="color: blue"></</span><span style="color: #a31515">title</span><span style="color: blue">> </</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">body</span><span style="color: blue">> <</span><span style="color: #a31515">input </span><span style="color: red">type</span><span style="color: blue">="button" </span><span style="color: red">onclick</span><span style="color: blue">="getNames()" </span><span style="color: red">value</span><span style="color: blue">="test" /> <</span><span style="color: #a31515">script </span><span style="color: red">type</span><span style="color: blue">="text/javascript"> function </span><span>getData() { </span><span style="color: blue">var </span><span>names=</span><span style="color: blue">new </span><span>Array(</span><span style="color: #a31515">"oec2003"</span><span>,</span><span style="color: #a31515">"oec2004"</span><span>); </span><span style="color: blue">return </span><span>names; } </span><span style="color: blue">function </span><span>getNames() { </span><span style="color: blue">var </span><span>names=getData(); alert(getData()[0]); </span><span style="color: green">//q回oec2003 </span><span>} </span><span style="color: blue"></</span><span style="color: #a31515">script</span><span style="color: blue">> </</span><span style="color: #a31515">body</span><span style="color: blue">> </</span><span style="color: #a31515">html</span><span style="color: blue">></span></pre></div> <p> </p> <p>2 数据封装到Json中返回,如下Q?/p> <div id="wmqeeuq" class="wp_codebox"><pre><span style="color: blue"><</span><span style="color: #a31515">html</span><span style="color: blue">> <</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">title</span><span style="color: blue">></span><span>JS函数q回多个?-oec2003</span><span style="color: blue"></</span><span style="color: #a31515">title</span><span style="color: blue">> </</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">body</span><span style="color: blue">> <</span><span style="color: #a31515">input </span><span style="color: red">type</span><span style="color: blue">="button" </span><span style="color: red">onclick</span><span style="color: blue">="getInfo()" </span><span style="color: red">value</span><span style="color: blue">="test"/> <</span><span style="color: #a31515">script </span><span style="color: red">type</span><span style="color: blue">="text/javascript"> function </span><span>getData() { </span><span style="color: blue">var </span><span>info={</span><span style="color: #a31515">"name"</span><span>:</span><span style="color: #a31515">"oec2003"</span><span>,</span><span style="color: #a31515">"age"</span><span>:</span><span style="color: #a31515">"25"</span><span>}; </span><span style="color: blue">return </span><span>info; } </span><span style="color: blue">function </span><span>getInfo() { </span><span style="color: blue">var </span><span>info=getData(); </span><span style="color: blue">var </span><span>name=info[</span><span style="color: #a31515">"name"</span><span>]; </span><span style="color: blue">var </span><span>age=info[</span><span style="color: #a31515">"age"</span><span>]; alert(</span><span style="color: #a31515">"姓名Q?</span><span>+name+</span><span style="color: #a31515">" q龄Q?</span><span>+age); } </span><span style="color: blue"></</span><span style="color: #a31515">script</span><span style="color: blue">> </</span><span style="color: #a31515">body</span><span style="color: blue">> </</span><span style="color: #a31515">html</span><span style="color: blue">></span></pre></div> <p>更详l的Json的介l请?a ><span style="color: #000000">q里</span></a></p> <p>3 q是最单的一U方法,看下面代码:(x)</p> <div id="wmqeeuq" class="wp_codebox"><pre><span style="color: blue"><</span><span style="color: #a31515">html</span><span style="color: blue">> <</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">title</span><span style="color: blue">></span><span>JS函数q回多个?-oec2003</span><span style="color: blue"></</span><span style="color: #a31515">title</span><span style="color: blue">> </</span><span style="color: #a31515">head</span><span style="color: blue">> <</span><span style="color: #a31515">body</span><span style="color: blue">> <</span><span style="color: #a31515">input </span><span style="color: red">type</span><span style="color: blue">="button" </span><span style="color: red">onclick</span><span style="color: blue">="getInfo()" </span><span style="color: red">value</span><span style="color: blue">="test"/> <</span><span style="color: #a31515">script </span><span style="color: red">type</span><span style="color: blue">="text/javascript"> function </span><span>getData() { </span><span style="color: blue">return </span><span>[</span><span style="color: #a31515">"oec2003"</span><span>, 25] } </span><span style="color: blue">function </span><span>getInfo() { </span><span style="color: blue">var </span><span>info = getData(); alert(</span><span style="color: #a31515">"姓名Q? </span><span>+ info[0] + </span><span style="color: #a31515">"q龄Q? </span><span>+ info[1]); } </span><span style="color: blue"></</span><span style="color: #a31515">script</span><span style="color: blue">> </</span><span style="color: #a31515">body</span><span style="color: blue">> </</span><span style="color: #a31515">html</span><span style="color: blue">></span></pre></div></div><!-- Baidu Button BEGIN --><img src ="http://www.aygfsteel.com/fiele/aggbug/417051.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2014-08-18 08:23 <a href="http://www.aygfsteel.com/fiele/archive/2014/08/18/417051.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>样式表学?/title><link>http://www.aygfsteel.com/fiele/archive/2013/05/14/399263.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Tue, 14 May 2013 08:33:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2013/05/14/399263.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/399263.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2013/05/14/399263.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/399263.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/399263.html</trackback:ping><description><![CDATA[1、文字太长,加省略号?br />li{<br />  white-space:nowrap;<br />  text-overflow:ellipsis; <br />  -o-text-overflow:ellipsis; /*opera*/<br />  overflow: hidden;<br /> }<img src ="http://www.aygfsteel.com/fiele/aggbug/399263.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2013-05-14 16:33 <a href="http://www.aygfsteel.com/fiele/archive/2013/05/14/399263.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jerichoTab 加蝲完默认选中最后一?如何让他选择W一?/title><link>http://www.aygfsteel.com/fiele/archive/2013/05/03/398740.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Fri, 03 May 2013 07:56:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2013/05/03/398740.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/398740.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2013/05/03/398740.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/398740.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/398740.html</trackback:ping><description><![CDATA[<div>W一步:(x) <p style="text-indent: 2em; margin: 2px">改代码吧?Ҏ(gu)件jquery.jerichotab.js W?05行, 原ؓ(f) </p> <p style="text-indent: 2em; margin: 2px">.animate({ 'opacity': '1', width: opts.tabWidth }, function() { </p> <p style="text-indent: 2em; margin: 2px">$.fn.setTabActive(curIndex); </p> <p style="text-indent: 2em; margin: 2px">}); </p> <p style="text-indent: 2em; margin: 2px">直接删除205行,或注解掉205?</p> <p style="text-indent: 2em; margin: 2px">//$.fn.setTabActive(curIndex);<br />W二步:(x)改JSP面<br />     把activeTabIndex:1改ؓ(f)activeTabIndex:0</p></div><img src ="http://www.aygfsteel.com/fiele/aggbug/398740.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2013-05-03 15:56 <a href="http://www.aygfsteel.com/fiele/archive/2013/05/03/398740.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript 获取?/title><link>http://www.aygfsteel.com/fiele/archive/2012/08/20/385863.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Mon, 20 Aug 2012 07:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2012/08/20/385863.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/385863.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2012/08/20/385863.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/385863.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/385863.html</trackback:ping><description><![CDATA[HTML面Q? <tr class="tableData" onclick="lightonRow(this);"><td class="tabel_td"><input type="checkbox" name="chk" value="I100220120800007" /></td> 获取复选框名字全ؓ(f)chk的对象|(x) function lightonRow(obj){ var tablelist=obj.parentElement;//parentElement 获取对象层次中的父对象? var objsCheckBox=tablelist.all("chk");} </tr><img src ="http://www.aygfsteel.com/fiele/aggbug/385863.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2012-08-20 15:40 <a href="http://www.aygfsteel.com/fiele/archive/2012/08/20/385863.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript金额计算http://www.aygfsteel.com/fiele/archive/2012/07/23/383754.html半导?/dc:creator>半导?/author>Mon, 23 Jul 2012 04:10:00 GMThttp://www.aygfsteel.com/fiele/archive/2012/07/23/383754.htmlhttp://www.aygfsteel.com/fiele/comments/383754.htmlhttp://www.aygfsteel.com/fiele/archive/2012/07/23/383754.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/383754.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/383754.html

]]>
单击日期选择?弹出I白的处?/title><link>http://www.aygfsteel.com/fiele/archive/2010/08/12/328636.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Thu, 12 Aug 2010 03:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2010/08/12/328636.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/328636.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2010/08/12/328636.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/328636.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/328636.html</trackback:ping><description><![CDATA[<p>IE选项->自定义?>允许Scriptlet</p> <img src ="http://www.aygfsteel.com/fiele/aggbug/328636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2010-08-12 11:41 <a href="http://www.aygfsteel.com/fiele/archive/2010/08/12/328636.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>"字符串分?/title><link>http://www.aygfsteel.com/fiele/archive/2010/01/05/308238.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Tue, 05 Jan 2010 02:01:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2010/01/05/308238.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/308238.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2010/01/05/308238.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/308238.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/308238.html</trackback:ping><description><![CDATA[<p><script language="javascript"> <br /> str="2,2,3,5,6,6"; //q是一字符?<br /> var strs= new Array(); //定义一数组 <br /> strs=str.split(","); //字符分割 <br /> for (i=0;i<strs.length ;i++ ) <br /> { <br /> document.write(strs[i]+"<br/>"); //分割后的字符输出 <br /> } <br /> </script> </p> <p> </p> <img src ="http://www.aygfsteel.com/fiele/aggbug/308238.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2010-01-05 10:01 <a href="http://www.aygfsteel.com/fiele/archive/2010/01/05/308238.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>多?截取 lastIndexOf() Ҏ(gu) http://www.w3school.com.cn/js/jsref_lastIndexOf.asphttp://www.aygfsteel.com/fiele/archive/2009/11/12/302072.html半导?/dc:creator>半导?/author>Thu, 12 Nov 2009 03:47:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/11/12/302072.htmlhttp://www.aygfsteel.com/fiele/comments/302072.htmlhttp://www.aygfsteel.com/fiele/archive/2009/11/12/302072.html#Feedback3http://www.aygfsteel.com/fiele/comments/commentRss/302072.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/302072.html 要去掉最后一个逗号Q处理办法:(x)
objCode=objCode.substring(0,objCode.lastIndexOf(","));



JavaScript lastIndexOf() Ҏ(gu)

提示和注?/h2>

注释Q?/span>lastIndexOf() Ҏ(gu)对大写敏感Q?/p>

注释Q?/span>如果要检索的字符串值没有出玎ͼ则该Ҏ(gu)q回 -1?/p>

实例

在本例中Q我们将?"Hello world!" 字符串内q行不同的检索:(x)

<script type="text/javascript">
var str="Hello world!"
document.write(str.lastIndexOf("Hello") + "<br />")
document.write(str.lastIndexOf("World") + "<br />")
document.write(str.lastIndexOf("world"))
</script>

以上代码的输出:(x)

0
-1
6

TIY

lastIndexOf()
如何使用 lastIndexOf() 在字W串内进行检索?


]]>
复选框传?/title><link>http://www.aygfsteel.com/fiele/archive/2009/11/04/301096.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Wed, 04 Nov 2009 08:48:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2009/11/04/301096.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/301096.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2009/11/04/301096.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/301096.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/301096.html</trackback:ping><description><![CDATA[<p>复选框全选,全不选,反?br /> <SCRIPT Language="JavaScript"><br /> <!--<br /> var put=document.getElementsByName("checkboxName");<br /> //全?br /> function selall(){<br />  for (i=0;i<put.length;i++){<br />    put[i].checked=true;<br />  }<br /> }</p> <p>//全不?br /> function Nselall(){<br />  for(i=0;i<put.length;i++){<br />    put[i].checked=false;<br />  }<br /> }<br /> //反?br /> function selfx(){<br />  for(i=0;i<put.length;i++){<br />    put[i].checked=(put[i].checked)?false:true;<br />  }<br /> }<br /> //复选框取?br /> function getValue(){<br /> var materialArray=new Array();<br /> var j=0;<br /> for (i=0;i<put.length;i++){<br />     if(put[i].checked){<br />        materialArray[j]=put[i].value;<br />        j++;<br />      }<br />  }<br /> }<br />  --><br /> </SCRIPT> </p> <p> </p> <p>后台的取值方? <br /> <br /> String no[] = request.getParameterValues("no"); </p> <img src ="http://www.aygfsteel.com/fiele/aggbug/301096.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2009-11-04 16:48 <a href="http://www.aygfsteel.com/fiele/archive/2009/11/04/301096.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascript insertAdjacentHTMLhttp://www.aygfsteel.com/fiele/archive/2009/11/04/301084.html半导?/dc:creator>半导?/author>Wed, 04 Nov 2009 08:04:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/11/04/301084.htmlhttp://www.aygfsteel.com/fiele/comments/301084.htmlhttp://www.aygfsteel.com/fiele/archive/2009/11/04/301084.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/301084.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/301084.html下面的例子?INPUT type=checkbox 元素创徏?jin)两个带有解释文本的复选框。onclick 事g调用两个脚本函数。第一个复选框默认选中?/p>

This example uses the INPUT type=checkbox element to create two check boxes with explanatory text. The onclick events call two script functions. The first check box is checked.

<INPUT TYPE=checkbox CHECKED ID=chk1 onclick="choosebox1()">Uncheck 
    this check box for some free advice.
<P><INPUT TYPE=checkbox ID=chk2 onclick="choosebox2()">Or check 
    this check box for a message from our sponsors.
<P ID=SampText>

下面的例子就是用户单d选框时调用的脚本?/p>

This example implements the script when the user clicks either check box.

<SCRIPT>
function choosebox1(){
  alert("Never play leapfrog with a unicorn!")
}
function choosebox2(){
 SampText.insertAdjacentHTML("AfterBegin","Buy WonderWidgets! ");当点d先框Ӟ在复选框后自动增加语句Buy WonderWidgets
}
</SCRIPT>


]]>
javascript中数字的比较和Double、Float比较http://www.aygfsteel.com/fiele/archive/2009/10/13/298065.html半导?/dc:creator>半导?/author>Tue, 13 Oct 2009 06:38:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/10/13/298065.htmlhttp://www.aygfsteel.com/fiele/comments/298065.htmlhttp://www.aygfsteel.com/fiele/archive/2009/10/13/298065.html#Feedback1http://www.aygfsteel.com/fiele/comments/commentRss/298065.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/298065.html if ((new Number(separate_num)).valueOf() > (new Number(can_num)).valueOf()){
}
2,整型比较Qt
if (parseInt(myform.t2.value) > myform.t1.value){
3Q?strong>parseFloat(myform.t2.value)

Double、Float比较
Double.parseDouble("1078.2564");
l果Q?078.2564
Float.parseFloat(("1078.2564");
l果:1078.2563
谁能告诉我ؓ(f)什么?

]]>
关闭IEH口时自动弹Z?/title><link>http://www.aygfsteel.com/fiele/archive/2009/09/28/296787.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Mon, 28 Sep 2009 07:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2009/09/28/296787.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/296787.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2009/09/28/296787.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/296787.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/296787.html</trackback:ping><description><![CDATA[<div class="wmqeeuq" id="header"> <h1> </h1> </div> <div class="wmqeeuq" id="main"> <div id="wmqeeuq" class="post"> <h2><a id="ctl04_TitleUrl" >关闭IEH口时执行事?/a> </h2> <div id="wmqeeuq" class="postText"> <p><script language="javascript"> <br />  //关闭H口时自动退?br />  function  window.onbeforeunload(){<br />   if(event.clientX>360&&event.clientY<0||event.altKey){   <br />    //alert("dddddddddd");<br />    Logout();<br />   }   <br />  }   <br />  function  Logout(){   <br />      try{   <br />      xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");   <br />      }catch(e){   <br />      xmlHttp = new XMLHttpRequest();   <br />      }   <br />      //数据传输,flase为非异步方式<br />      xmlHttp.open("post","enter.asp?Active=Logout",true);   <br />      xmlHttp.send(null);   <br />  }   <br /> </script>   </p> <div class="wmqeeuq" id="digg_block"> </div> </div> </div> </div> <img src ="http://www.aygfsteel.com/fiele/aggbug/296787.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2009-09-28 15:11 <a href="http://www.aygfsteel.com/fiele/archive/2009/09/28/296787.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>HTML应用http://www.aygfsteel.com/fiele/archive/2009/09/27/296665.html半导?/dc:creator>半导?/author>Sun, 27 Sep 2009 08:18:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/09/27/296665.htmlhttp://www.aygfsteel.com/fiele/comments/296665.htmlhttp://www.aygfsteel.com/fiele/archive/2009/09/27/296665.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/296665.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/296665.html链接指向Q?br /> <li><a href="#animate">Find me:Animate </a></li>

<h2 id="animate">Animate me</h2>



]]>
javascript数据cd转换http://www.aygfsteel.com/fiele/archive/2009/06/10/281103.html半导?/dc:creator>半导?/author>Wed, 10 Jun 2009 04:00:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/06/10/281103.htmlhttp://www.aygfsteel.com/fiele/comments/281103.htmlhttp://www.aygfsteel.com/fiele/archive/2009/06/10/281103.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/281103.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/281103.htmlparseFloat 转换成QҎ(gu)
parseInt 转换成整?

q两个函数都有些定w性的,比如"123abc"?x)变?23.
如果g希望更准一?其实可以判断一?然后用eval,像这?/p>

不过也可以用这L(fng)Ҏ(gu):
var a = "234" ;
a = a.replace(/(^[\\s]*)|([\\s]*$)/g, "");
if( a !="" && !isNaN( a ) )
{//如果是数?br /> a = eval( a )
}
else
{//如果不是数字
a = null
}

javascript有两U数据类型的转换Ҏ(gu)Q一U是整个g一U类型{换ؓ(f)另一U数据类型(UC基本数据cd转换Q,另一U方法是从一个g提取另一U类型的|q完成{换工作?/p>

基本数据cd转换的三U方法:(x)

1.转换为字W型QString(); 例:(x)String(678)的结果ؓ(f)"678"
2.转换为数值型QNumber(); 例:(x)Number("678")的结果ؓ(f)678
3.转换为布?yu)(dng)型QBoolean(); 例:(x)Boolean("aaa")的结果ؓ(f)true

从一个g提取另一U类型的值的Ҏ(gu)Q?/p>

1.提取字符串中的整敎ͼ(x)parseInt(); 例:(x)parseInt("123zhang")的结果ؓ(f)123
2.提取字符串中的QҎ(gu)QparseFloat(); 例:(x)parseFloat("0.55zhang")的结果ؓ(f)0.55
3.执行用字W串表示的一Djavascript代码Qeval(); 例:(x)zhang=eval("1+1")的结果zhang=2



]]>
indexOf函数http://www.aygfsteel.com/fiele/archive/2009/04/22/266993.html半导?/dc:creator>半导?/author>Wed, 22 Apr 2009 07:11:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/04/22/266993.htmlhttp://www.aygfsteel.com/fiele/comments/266993.htmlhttp://www.aygfsteel.com/fiele/archive/2009/04/22/266993.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/266993.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/266993.html 

JavaScript中indexOf函数Ҏ(gu)q回一个整数|指出 String 对象内子字符串的开始位|。如果没有找到子字符Ԍ则返?-1。如?startindex 是负敎ͼ?startindex 被当作零。如果它比最大的字符位置索引q大Q则它被当作最大的可能索引?/p>

indexOf函数是从左向x行查找。否则,该方法与 lastIndexOf 相同?/p>

下面的示例说明了(jin)indexOf函数Ҏ(gu)的用法?br /> function IndexDemo(str2){
   var str1 = "BABEBIBOBUBABEBIBOBU"



]]>
Http之Get/Posth区别 转自 http://www.cnblogs.com/wxf0701/http://www.aygfsteel.com/fiele/archive/2009/04/21/266770.html半导?/dc:creator>半导?/author>Tue, 21 Apr 2009 07:56:00 GMThttp://www.aygfsteel.com/fiele/archive/2009/04/21/266770.htmlhttp://www.aygfsteel.com/fiele/comments/266770.htmlhttp://www.aygfsteel.com/fiele/archive/2009/04/21/266770.html#Feedback0http://www.aygfsteel.com/fiele/comments/commentRss/266770.htmlhttp://www.aygfsteel.com/fiele/services/trackbacks/266770.htmlHttp之Get/Posth区别

1Q?/span>HTTPh格式Q?/span>

<request line>

<headers>

<blank line>

[<request-body>]

?/span>HTTPh中,W一行必L一个请求行Q?/span>request lineQ,用来说明hcd、要讉K的资源以?qing)用?/span>HTTP版本。紧接着是一个首部(headerQ小节,用来说明服务器要使用的附加信息。在首部之后是一个空行,再此之后可以dL的其他数?/span>[UCZ体(bodyQ]?/span>

2Q?/span>GET?/span>POST区别

HTTP定义?jin)与服务器交互的不同?gu)Q最基本的方法是 GET ?/span> POST.

HTTP-GET和HTTP-POST是用HTTP的标准协议动词,用于~码和传送变量名/变量值对参数Qƈ且用相关的h语义。每个HTTP-GET和HTTP-POST都由一pdHTTPh头组成,q些h头定义了(jin)客户端从服务器请求了(jin)什么,而响应则是由一pdHTTP应答头和应答数据l成Q如果请求成功则q回应答?br />   HTTP-GET以用MIMEcdapplication/x-www-form-urlencoded的urlencoded文本的格式传递参数。Urlencoding是一U字W编码,保证被传送的参数由遵循规范的文本l成Q例如一个空格的~码?%20"。附加参数还能被认ؓ(f)是一个查询字W串?br />   与HTTP-GETcMQHTTP-POST参数也是被URL~码的。然而,变量?变量g作ؓ(f)URL的一部分被传送,而是攑֜实际的HTTPh消息内部被传送?/span>

Q?Qget?span style="color: #ff00ff">从服务器?/span>获取数据Qpost?span style="color: #ff00ff">向服务器传?/span>数据?/span>

Q?Q?span style="font: 7pt 'Times New Roman'">   在客L(fng)Q?/span>Get方式在通过URL提交数据Q数?/span>?/span>URL?/span>可以看到Q?/span>POST方式Q数据放|在HTML HEADER?/span>提交?/span>

Q?Q?nbsp;对于get方式Q服务器端用Request.QueryString获取变量的|对于post方式Q服务器端用Request.Form获取提交的数据?/span>

Q?Q?span style="font: 7pt 'Times New Roman'">   GET方式提交的数据最?span style="color: #ff00ff">只能?/span>1024字节Q?/span>POST?span style="color: #ff00ff">没有此限?/span>?/span>

Q?Q?span style="font: 7pt 'Times New Roman'">   安全性问题。正如在Q?/span>1Q中提到Q?/span> Get 的时候,参数?span style="color: #ff00ff">昄在地址栏上Q?/span> Post 不会(x)。所以,如果q些数据是中文数据而且是非敏感数据Q那么?/span> getQ如果用戯入的数据不是中文字符而且包含敏感数据Q那么还是?/span> post为好?/span>

注:(x)所谓安全的意味着该操作用于获取信息而非修改信息。幂{的意味着对同一 URL 的多个请求应该返回同L(fng)l果。完整的定义q不像看h那样严格。换句话_(d)GET h一般不应生副作用。从Ҏ(gu)上讲Q其目标是当用户打开一个链接时Q她可以信从自w的角度来看没有改变资源。比如,新闻站点的头版不断更新。虽然第二次h?x)返回不同的一Ҏ(gu)闻,该操作仍然被认ؓ(f)是安全的和幂{的Q因为它Lq回当前的新闅R反之亦然?/span>POST h׃那么L?jin)?/span>POST 表示可能改变服务器上的资源的h。仍然以新闻站点ZQ读者对文章的注解应该通过 POST h实现Q因为在注解提交之后站点已经不同?jin)(比方说文章下面出C条注解)(j)?/span>

下面举一个简单的例子来说明它们的区别Q?/span>

<!-分别通过get和post方式提交表单-->
<FORM ACTION="getpost.asp" METHOD="get">
<INPUT TYPE="text" NAME="Text" VALUE="
http://wxf0701.cnblogs.com//>
<INPUT TYPE="submit" VALUE="Get方式"></INPUT>
</FORM>
<BR>
<FORM ACTION="getpost.asp" METHOD="post">
<INPUT TYPE="text" NAME="Text" VALUE="
http://wxf0701.cnblogs.com/>
<INPUT TYPE="submit" VALUE="Post方式"></INPUT>
</FORM>
<BR>

<% If Request.QueryString("Text") <> "" Then %>
通过get方式传递的字符串是Q?"<B><%= Request.QueryString("Text") %></B>"<BR>
<% End If %>

<% If Request.Form("Text") <> "" Then %>
通过Post方式传递的字符串是Q?"<B><%= Request.Form("Text") %></B>"<BR>
<% End If %>



]]>
Javascript技?/title><link>http://www.aygfsteel.com/fiele/archive/2006/11/16/81444.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Thu, 16 Nov 2006 02:02:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2006/11/16/81444.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/81444.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2006/11/16/81444.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/81444.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/81444.html</trackback:ping><description><![CDATA[<strong>报警信息昄在页面上的处?</strong> <br /> 在需要报警的文本?<SPAN id="message" STYLE="color:red"></SPAN><br /> l报警信息赋?    window.parent.record_handler.message.innerText = "警告信息";<br /> 按钮启用/用的处?br />   <input type = "button" name="selebatch" class = "myBtn" onClick="select_on()" value = "Ҏ(gu)选择"  disabled><br />    启用按钮:<br />    window.parent.parent.record_handler.myform.selebatch.disabled=false;<br />   用按钮:<br />     window.parent.parent.record_handler.myform.selebatch.disabled=true;<br /> <strong>每隔二十U自动刷新页?</strong><br /> <meta http-equiv="refresh" content="20"><br /> <strong>javascript 字符串截取功能比?<br /> </strong><br /> String.substr(N1,N2) q个是我们常用的从指定的位|?N1)截取指定长度(N2)的字W串; <br /> String.substring(N1,N2) q个有点特别了(jin)Q它是先从N1QN2里找Z个较?yu)的|然后从字W串的开始位|算P截取较小g|和较大g|之间的字符?截取出来的字W串的长度ؓ(f)较大g较小g间的差?br /> <br /> <strong>下拉框位|判断?br /> </strong><select name="month_share" style="width:140"  onchange="ChangePlanType();" > <br /> <%=DropdownList.getDropList("yymm","months","months","","","","ELOGISDBCON")%></select><br /> 下拉框位|判断语句:(x)myform.month_share.selectedIndex   ?开始?br /> <br /> <strong>当页面不能刷新时,<br /> ?br /> </strong>   window.parent.parent.record_list_d.location.reload();前增?br />    window.document.location.replace("about:blank");<br />    ?<br />    <script language="javascript"><br />       window.document.location.replace("about:blank");<br />             alert("数据删除成功Q?);<br />          window.parent.parent.record_list_d.location.reload();<br />    </script><br /> <strong>HTML取?<br /> </strong>   <td width="33%" id="strength_L">?lt;/td>  <br />   取?document.getElementById("strength_L").innerHTML  l果:?br />   CSS背景色更?document.getElementById("strength_L").style.background="#FF0000";  <br /> <img src ="http://www.aygfsteel.com/fiele/aggbug/81444.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2006-11-16 10:02 <a href="http://www.aygfsteel.com/fiele/archive/2006/11/16/81444.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>材料选择自动转到下一文本?/title><link>http://www.aygfsteel.com/fiele/archive/2006/11/11/80634.html</link><dc:creator>半导?/dc:creator><author>半导?/author><pubDate>Sat, 11 Nov 2006 13:51:00 GMT</pubDate><guid>http://www.aygfsteel.com/fiele/archive/2006/11/11/80634.html</guid><wfw:comment>http://www.aygfsteel.com/fiele/comments/80634.html</wfw:comment><comments>http://www.aygfsteel.com/fiele/archive/2006/11/11/80634.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fiele/comments/commentRss/80634.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fiele/services/trackbacks/80634.html</trackback:ping><description><![CDATA[ <p> <img src="C:\Documents and Settings\new\桌面\22.jpg" /> <br /> <br /> <br />如图所C?cMq样的文本框.按一ơTAB键就?x)自动蟩转到最前面的复选框,</p> <p>那么用户可以在文本框的属性里增加  tabIndex='1' 便可以让TAB键每ơ定位时都定位在序的W一个文本框Q如<br />inputfields[0] = "<input name ='current_num' size='6' type = 'text' value='' tabIndex='1' '>"; <br />也可以用回R键来实现<br />onKeypress='if(window.event.keyCode==13) event.keycode=9'<br /><br />Ҏ(gu)是很?但是我找?jin)很久才解?本h不才.....<br /></p> <img src ="http://www.aygfsteel.com/fiele/aggbug/80634.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fiele/" target="_blank">半导?/a> 2006-11-11 21:51 <a href="http://www.aygfsteel.com/fiele/archive/2006/11/11/80634.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">۩</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">»</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">٤ʦ</a>| <a href="http://" target="_blank">ͭɽ</a>| <a href="http://" target="_blank">ͩ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank">±</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">½</a>| <a href="http://" target="_blank">ղ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">¡Ң</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ֹ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">±</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">կ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>