`
hzy3774
  • 浏览: 984924 次
  • 性别: Icon_minigender_1
  • 来自: 珠海
社区版块
存档分类
最新评论
文章列表
1.escape函数 <script> document.write(escape("Hello World!!你好,世界!!")) document.write("<br/>"); document.write(unescape("Hello%20World%21%21%u4F60%u597D%uFF0C%u4E16%u754C%uFF01%uFF01")) </script>   2.parse与isNaN <script> var str=&q ...
1.函数指定默认参数   <script> function fun(a,b,c){ a = a ? a:1;//方法1 if(typeof(b)=='undefined'){//方法2 b=2; } alert(a+'-'+b+'-'+c); } fun(); </script>     2.获取所有参数   <script> function fun(){ alert(arguments.length);//获得参数数组长度 var sum=0; f ...
package org.hu.jdom; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import org.jdom.*; import org.jdom.output.XMLOutputter; public class MyJDOM { public static void main(String args[]){ Element root=new Element("root"); Element linkm ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace ConsoleDemo { class Programme { public static void Main(string[] args) { XmlDocument doc = new XmlDocument(); XmlDeclarati ...

C#中delegate使用

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo { public delegate int Fun(int i); class Program { static void Main(string[] args) { Fun f = sqrt; Console.WriteLine(f(5)); ...
using System; using System.Collections.Generic; using System.Text; namespace ConsoleDemo { class Program { static void Main(string[] args) { SendCls sc = new SendCls(); sc.eveMyeve += new SendCls.deleMydele(sc_eveMyeve); sc.r ...
Global site tag (gtag.js) - Google Analytics