½â¾öjson°üº¬html±êÇ©ÎÞ·¨ÏÔʾµÄÎÊÌâ
Ö÷ÒªÊǽ«jsonÎÞ·¨Ê¶±ðµÄ×Ö·û½øÐÐתÒå
function dotran($str) {
$str = str_replace('"','\\"',$str);
$str = str_replace("\r\n",'\\r\\n',$str);
$str = str_replace("\t",'\\t',$str);
$str = str_replace("\\",'\\',$str);
$str = str_replace("\b",'\\b',$str);
return $str;
}
ÕâÑù·µ»ØµÄÊý¾Ý¾Í¿ÉÒÔÕý³£ÏÔʾ£¬ÏÂÃæÊÇת»»ºóµÄÄÚÈÝ£º
jsontext='{"jqry":[{"id":"121","userid":"0","status":"1","filename":"","url":"333333333","title":"aaaaaaa","type":"WatchTV","seq":"1","remark":"remarktext","content":"<p>\\r\\n\\t<object classid=\\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\\" codebase=\\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\\"><param name=\\"quality\\" value=\\"high\\" /><param name=\\"movie\\" value=\\"
Ïà¹ØÎĵµ£º
<label> ±êǩΪ input ÔªËØ¶¨Òå±ê×¢£¨±ê¼Ç£©¡£
label ÔªËØ²»»áÏòÓû§³ÊÏÖÈκÎÌØÊâЧ¹û¡£²»¹ý£¬ËüΪÊó±êÓû§¸Ä½øÁË¿ÉÓÃÐÔ¡£Èç¹ûÄúÔÚ label ÔªËØÄÚµã»÷Îı¾£¬¾Í»á´¥·¢´Ë¿Ø¼þ¡£¾ÍÊÇ˵£¬µ±Óû§Ñ¡Ôñ¸Ã±êǩʱ£¬ä¯ÀÀÆ÷¾Í»á×Ô¶¯½«½¹µãתµ½ºÍ±êÇ©Ïà¹ØµÄ±íµ¥¿Ø¼þÉÏ¡£
<label> ±êÇ©µÄ for ÊôÐÔÓ¦µ±ÓëÏà¹ØÔªËØµÄ id ÊôÐÔÏ ......
·ÃÎʿؼþµÄÖ÷Òª¶ÔÏóÊÇ:document¶ÔÏó¡£·Ö±ð¶ÔÓ¦µ±Ç°ÎĵµËùÓеģ¨×Ó¶ÔÏ󣩸öÈ˹۵㡣²¢ÇÒÒѾÌṩµÄ¼¸¸öÖ÷Òª·½·¨À´·ÃÎʶÔÏó¡£
1. document.getElementById
2. document.getElementsByName
3 &n ......
HTML 5——ÏÂÒ»´úweb¿ª·¢±ê×¼
HTML5¿´À´½«³ÉΪÖ÷Á÷£¬ä¯ÀÀÆ÷Õ½ÕùÄËÖÁÕû¸ö»¥ÁªÍøµÄ·¢Õ¹Ò²½«Î§ÈÆÕâÒ»µãÕ¹¿ª¡£¶øFlash¡¢SilverlightºÍJavaFXµÈµÈRIA¼¼Êõ£¬½«ÃæÁÙÑϾþµÄÉú´æÌôÕ½
²Î¿¼51cto
http://developer.51cto.com/art/200907/133407.htm ......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Lan ......