¹ØÓÚXML¡¢XSLT¡¢JSÎÊÌâ - .NET¼¼Êõ / ASP.NET
Âß¼£ºÔÚXSLÖлñµÃXMLÖнڵãpicPathµÄÖµ
ÀýÈ磺/templets/images/test.jpg|/templets/images/ad_1.gif|/templets/images/ad_2.jpg|
ÉùÃ÷±äÁ¿
<xsl:variable name="picPath" select="picPath"/>
½«Öµ´«¸øJSº¯Êý
<div onload="CutPic($picPath)">
JSº¯ÊýΪ
funtion CutPic(picPath)
{
£ý
ÎÊÌ⣺ÎÞ·¨½«picPathµÄÖµ´«¸øJSº¯ÊýCutPic()ÖÐ
Çë´óϺÃǰï°ï棬ÔÚÏߵȣ¡
°ï¶¥¡¡
XML code:
<input id="picUrl" type="hidden">
<xsl:attribute name="value">
<xsl:value-of select="$picPath"/>
</xsl:attribute>
</input>
°ÑÖµ±£´æµ½Òþ²ØÓò£¬Óû§µÄʱºòÔÙ»ñÈ¡
¿ÉÄÜÎÒ˵µÄ²»´óÇå³þ£¬ÎÒÔÚJSÍâµ÷Óú¯Êý£ºÒ³Ãæ¼ÓÔØonload="CutPic('/templets/images/test.jpg|/templets/images/ad_1.gif|')"
È»ºó°ÑÖµ´«¸øJSÖеĺ¯Êý£¬¸øÊý×éarrUrl¸³Öµ£¬Ëæºó¿ÉÒÔÔÚº¯ÊýÍâʹÓÃÊý×éarrUrlµÄÖµ
Èç¹ûʹÓ÷µ»ØÖµ£¬ÔÚº¯ÊýÍâµ÷Óøú¯ÊýCutPic£¨²ÎÊý£©£¬ÀïÃæ²ÎÊýÔõô¸ã£¿²ÎÊýÊÇδ֪µÄ
<div onload="CutPic( "+<xsl:value-of select="$picPath"/> +")">
ÕâÑù²»Ðеϰ£¬¾Í°ÑÖµ ·ÅÈëÒ»¸öÒþ²ØÓòÀïÃæ¡£ÔÚjs º¯ÊýÀïÃæÈ¡Õâ¸öÒþ²ØÓòµÄÖµ¡£
Ïà¹ØÎÊ´ð£º
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
±¾ÈËÊDzËÄñÒ»¸ö£¬Æ½Ê±Òª×öÉúÒ⣬µ«ÊÇÕÒÁ˺ܶàÈË×öÍøÕ¾£¬¾ù±»ÆÁË¡£×öµÃ²»Èý²»ËÄ£¬ÏÖÔÚ¾öÐÄ×Ô¼ºÀ´×öÒ»¸ö£¬ÒÑѧϰASP.NETÏà¹ØµÄÍøÒ³ÖÆ×÷֪ʶ£¬ÓÐDW»ù´¡£¬¿ÉÒÔ˵ÊÇĿǰֻÓÐÀíÂÛ֪ʶ£¬µ«ÊÇÔÚʵ¼Ê¾ßÌå²Ù×÷µÄʱºò£¬×ÜÊÇÓöµ ......