FLASH+XML²»ÏÔʾÖÐÎÄ»òÎÞ·¨ÏÔʾÖÐÎĵĽâ¾ö·½·¨
³£³£ÔÚÍøÉÏ¿´µ½Ò»Ð©ºÜµÄFLASHЧ¹û¿ÉÊÇÏÂÏÂÀ´ºó²Å·¢ÏÖÖÐÎIJ»Ö§³Ö»ò¶¼ÖÐÎÄÎÞ·¨ÏÔʾµÄÎÊÌ⣬ËùÒÔÔÚÍøÉÏÕÒÁ˺ܶà×ÊÁÏÖÕÓÚÕÒµ½ÁËÒ»¸ö¼òµ¥µÄ·½·¨À´½â¾öÕâ¸öÎÊÌ⣬ÔÚÕâÀïÓë´ó¼Ò·ÖÏíһϡ£
µãÄÏǶÈë°´Å¥£¬°´ÏÂctrlÑ¡Öдóд,Сд,Êý×Ö,±êµã·ûºÅ,ÖÐÎÄ(È«²¿)ºó,È·¶¨!!
ÕâÑù¾ÍOKÁË¡£
Ïà¹ØÎĵµ£º
¹¤¾ß:myeclipse 6.5
jsonÖÐÎĹٷ½£ºhttp://www.json.org/json-zh.html
н¨ÏîÄ¿webs£¬ÔÚWebRootÏÂн¨Ä¿Â¼json
xmlµÄ½âÎö·½Ê½:
------------------------------------------------------------------
1.н¨NewFile.xml
<?xml version="1.0" encoding="UTF-8"?>
<userinfo>
  ......
function init() {
var viewChartID = 0;
var viewChartSum = "" ;
reportName = document.getElementById("reportName").value;
xmlDoc=loadXMLDoc("./charreport/xml/viewChart.xml");
x=xmlDoc.getElementsByTagName('viewChart')[0].childNodes;
for (i=0;i<x.length;i++ ......
±¾ÎÄÖ¼ÔÚ˵Ã÷ÈçºÎÀûÓÃFlashºÍCÓïÑÔÖÆ×÷BSģʽϵÄʵʱÊý¾Ý¶¯Ì¬ÇúÏßͼ£¬ÏÖÔÚÁ÷ÐеÄʵʱÊý¾ÝÇúÏßͼ£¬´ó¶¼ÊDzÉÓÃÁËCSģʽµÄ¿ª·¢ÓïÑÔ£¬BSģʽµÄËäÓÐһЩʵÀý£¬±ÈÈçgoogleÉϵĹÉÊÐÇúÏßͼ£¬µ«ÆäʵÏֵķ½Ê½ºÍÁ÷³ÌÔÚÍøÉϺÜÉÙÄܼûµ½¡£
ÆäÔËÐÐʱµÄ½çÃæÈçÏ£¬Êý¾Ýʵʱ¸üУ¬ÇúÏßͼ´Ó×óÍùÓÒ¶¯Ì¬Òƶ¯£º
ÏÂÃæÏȽ²ÔÚʵÏÖ¹ý³ÌÖеŤ×÷»·¾³ ......
--XQuery »ùÓÚÏÖÓÐµÄ XPath ²éѯÓïÑÔ£¬²¢Ö§³Ö¸üºÃµÄµü´ú¡¢¸üºÃµÄÅÅÐò½á¹ûÒÔ¼°¹¹Ôì±ØÐèµÄ XML µÄ¹¦ÄÜ¡£
--1.ÉùÃ÷Ò»¸ö xml ÀàÐ͵ıäÁ¿£¬È»ºóʹÓà xml Êý¾ÝÀàÐ굀 query() ·½·¨À´²éѯ´Ë±äÁ¿
DECLARE @x xml
SET @x = '<ROOT><a>111</a></ROOT>'
SELECT @x.query('/ROOT/a')
--²éÕÒÊôÐÔaid=20µÄa½ ......
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<STYLE>
v\:* { Behavior: url(#default#VML) }
body {
background-color:DarkGoldenrod;
margin-left: 10px;
&nbs ......