ÌìÆøÔ¤±¨ WebService Web JavaScript µ÷ÓôúÂë
javascript, webservice, ÌìÆøÔ¤±¨
ÔËÐÐÑÝʾ£¬Çëµã»÷ÕâÀ>>ÌìÆøÔ¤±¨ WebService JavaScript WebÒ³Ãæµ÷ÓôúÂ룬תÔؼ°Ê¹ÓøôúÂ룬Çë±£Áô×÷ÕßÐÅÏ¢£¬ÆäËü²¿·ÖÄú¿ÉÈÎÒâÐ޸ġ£
Ô´´ú碼£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>MoFun.CC ÌìÆøÔ¤±¨ WebService Web Ò³Ãæ JavaScript µ÷ÓôúÂë</title>
<mce:script language="javascript" defer="true"><!--
var request;
function createXMLHttpRequest() {
try
{
request = new XMLHttpRequest();
return request;
}
catch (Error){
try{
request = new ActiveXObject("MSXML2.XMLHTTP");
return request;
}
catch (oError){
}
}
}
function trim(str){
¡¡¡¡return str.replace(/(^\s*)|(\s*$)/g, "");
}
var value=new Array();
var variable=new Array();¡¡
function test() {
var Addr=trim(document.getElementById("Address").value);
if(Addr!="")
RequestByPost(Addr,"http://srv.mofun.cc/weather/weather.dll/soap/IWeatherDataModule");
}
function handleStateChange()
{
¡¡¡¡var h=document.getElementById("Label1");
¡¡¡¡if(request.readyState==4)
¡¡¡¡{
¡¡¡¡¡¡¡¡if(request.status==200)
¡¡¡¡¡¡¡¡{
¡¡¡¡¡¡¡¡¡¡¡¡h.innerHTML=request.responseText;
¡¡¡¡¡¡¡¡}
}
}¡¡
function getlen(str)
{
var bytesCount=0;
for (var i = 0; i < str.length; i++)
{
var c = str.charAt(i);
if (/^[u0000-u00ff]$/.test(c))¡¡
¡¡¡¡ {
bytesCount += 1;
}
else
{
bytesCount += 2;
}
}
return bytesCount;¡¡¡¡
}¡¡
¡¡¡¡
function RequestByPost(value,url)
{
createXMLHttpRequest();
var data;
data = '<
Ïà¹ØÎĵµ£º
40¸öÇáÁ¿¼¶JavaScript¿â½éÉÜ
Á÷ÐÐ JavaScript ¿â²»Ê¤Ã¶¾ÙjQuery, MooTools, Prototype, Dojo, YUIÕâЩ JavaScript ¿â¹¦Äܷḻ¼ÓÉÏËüÃDzå¼þ¼¸ºõÄÜʤÈÎÈκι¤×÷È»¶øÕâÓдú¼ÛÕâЩ¿âÍùÍùµ¼ÖÂÄãÍøÒ³³ß´çÓ·Ö×ijЩ³¡ºÏÈç¹ûÄãÖ»ÏëÍê³ÉÌض¨¹¤×÷¿ÉʹÓÃһЩ¹¦ÄܸüרһÇáÁ¿¿â±¾ÎĽéÉÜÁË40¸ö·Ç³£³öÉ«ÇáÁ¿¼¶ JavaScript ¿â
......
´´½¨Ò»¸öWinformÓû§¿Ø¼þ UserControl1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Reflection;
namespace MyActiveT ......
marquee¹ö¶¯±êÇ©µÄjavascript(jquery)Ìæ´úÆ·:jquery.marquee²å¼þ(http://remysharp.com/tag/marquee) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999 ......
ÔÚ³ÌÐòÔ±ÔÓÖ¾ÉÏ¿´µ½Ò»Æª¶ÌÎÄ¡¶Ç°¶Ë¿ª·¢¹¤¾ß¸ÅÀÀ¡·¡£¾õµÃºÜÓÐʵÓüÛÖµ¡£ÏÖ×ܽáÈçÏ£º
Ò»¡¢µ÷ÊÔ¹¤¾ß
1.firebug
2.Web Developer Toolbar--µ÷ÕûÒ³ÃæµÄ¸÷¸öϸ½Ú
3.IE Developer Toolbar--µ÷ÊÔIEµÄHTMLºÍCSS
4.Companion.JS--µ÷ÊÔIEµÄJavascript
5.Fiddler--Webµ÷ÊÔ´úÀí£¬¼Ç¼±¾»úµ½»¥ÁªÍøµÄËùÓÐHTTP(S)ÇëÇó¡£
¶þ¡¢²âÊÔ¹¤ ......
javascriptÄÚ´æ鶵ÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬ÔÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊÌ ......