Javascriptµ÷ÓÃWebserviceµÄ¶àÖÖ·½·¨
ͨ¹ýxmlhttp+webservice(Ôʼ·½·¨)
ÔÎĵØÖ·:http://netboy.cnblogs.com/archive/2006/02/18/333260.html
view plaincopy to clipboardprint?
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[webservice(namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service ()
{
//uncomment the following line if using designed components
//InitializeComponent();
}
[webmethod]
public string SayHelloTo(string Name)
{
return "Hello "+Name;
}
}
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[webservice(namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service ()
{
//uncomment the following line if using designed components
//InitializeComponent();
}
[webmethod]
public string SayHelloTo(string Name)
{
return "Hello "+Name;
}
}
»¹ÊÇË×Á˵㡣:)
2. jsµ÷ÓÃwebservice+xmlhttpµÄʵÏÖ²¿·Ö¡£
view plaincopy to clipboardprint?
<html>
<title>Call webservice with javascript and xmlhttp.</title>
<body>
<mce:script language="javascript"&
Ïà¹ØÎĵµ£º
Ò»¸ö¹«ÓÃÀࣺflash.external.ExternalInterface£»
¸ÃÀàÓÐÁ½¸öÏà¹Ø·½·¨£º
1¡¢µ÷ÓÃjavascriptº¯Êý£»
ExternalInterface.call(´jsº¯ÊýÃû´[,ÒÔ¶ººÅ¸ô¿ªµÄ¶à¸ö²ÎÊý]);
ÆäÖÐjsº¯ÊýÃûΪÔÚjavascriptÖÐÉêÃ÷µÄº¯ÊýÃû³Æ£¬
´«µÝµÄ²ÎÊý¿ÉÒÔÊÇasÖÐÈκÎÀàÐ͵ÄÊý¾Ý£¬ÕâЩ²ÎÊý½«±»×Ô¶¯×ª»»³Éjs±äÁ¿£»
2¡¢×¢²ájsÖпÉÓÃµÄ»Ø ......
JavaScript²»Çø·Öµ¥¸ö×Ö·ûºÍ×Ö·û´®£¬ÈκÎ×Ö·û»ò×Ö·û´®¿ÉÒÔÓÃË«ÒýºÅ»òµ¥ÒýºÅÒýÆðÀ´¡£Èç¹û×Ö·û´®±¾Éíº¬ÓÐË«ÒýºÅ£¬ÔòӦʹÓõ¥ÒýºÅ½«×Ö·û´®À¨ÆðÀ´£»Èç¹û×Ö·û´®±¾Éíº¬Óе¥ÒýºÅ£¬ÔòӦʹÓÃË«ÒýºÅ½«×Ö·û´®ÒýÆðÀ´£¬Á½Õß¿ÉÒÔǶÌ×ʹÓᣠ......
ÓÐÁËÇ°ÃæµÄһƪÎÄÕ¡¶ÔÚ Wordpress ²å¼þÖÐʹÓÃÑùʽ±í¡·£¬Ôò±¾½Ú¡¶ÔÚ WP ²å¼þÖÐʹÓà Javascript¡·¾ÍºÃÃèÊö£¬Ò²ÈÝÒ×Àí½âµÄ¶àÁË¡£
1£¬²å¼þµÄÎļþ¼Ð½á¹¹ÓëǰÎÄÏàͬ¡£²å¼þÍê³ÉµÄ¹¦ÄÜǰÎÄÒѾÊö¼°£¬±¾½Ú½«¼ÓÒ»¸ö¹¦ÄÜ£¬µ±ÔÚÎÄ×ÖÉϵã»÷ʱ£¬µ¯³öÒ»¸ö´°¿Ú¡£±¾½ÚʾÀýÒ²ÔÚǰÎÄʾÀýµÄ»ù´¡ÉÏ¿ª·¢¡ ......
Ò»¡¢deleteÔËËã·ûɾ³ý¶ÔÒÔǰ¶¨ÒåµÄ¶ÔÏóÊôÐÔ»ò·½·¨µÄÒýÓãº
var o=new Object();
o.name="hello";
alert(o.name); //Êä³ö“hello”
delete o.name£»
alert(o.name); //Êä³ö& ......
×ªÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......