在frefox页面中显示跟输入的关键字匹配的mathml公式,我现在是通过servlet中把检索的结果组织好,返回到js
js\u9875\u9762\u901a\u8fc7servlet \u5220\u9664\u4e00\u6761\u6570\u636e\u4e4b\u540e\uff0c\u8fd4\u56de\u5230\u539fjsp\u9875\u9762\uff0c\u4ecd\u663e\u793a\u5220\u9664\u6570\u636e\uff0c\u8be5\u600e\u6837\u5904\u7406\uff1f\u53ef\u80fd\u6709\u7f13\u5b58,\u8fd8\u6709\u4f60\u7684\u5b9e\u73b0\u4e0d\u597d....
1.\u7f13\u5b58\u7684\u5904\u7406\u65b9\u6cd5 \u53ef\u4ee5\u901a\u8fc7\u8fc7\u6ee4\u5668,\u6216\u8005\u6709response\u7684\u5730\u65b9(\u5982:jsp\u9875\u9762)
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0L);
2.\u6280\u672f\u5b9e\u73b0
\u4e00\u822c\u60c5\u51b5\u4e0b,\u90fd\u4e0d\u592a\u7528response.sendRedirect("") .
\u7528\u8fd9\u4e2a\u5f97\u6bd4\u8f83\u591arequest.getRequestDispatcher("").forward(request,response);
\u5177\u4f53 forward \u548c redirect\u7684\u533a\u522b,\u4f60\u53ef\u4ee5\u7f51\u4e0a\u67e5\u67e5,\u76f8\u4fe1\u4f60\u9762\u8bd5\u524d\u51c6\u5907\u7684\u65f6\u5019\u90fd\u80cc\u8fc7
3.\u4e1a\u52a1\u5b9e\u73b0
\u4f60\u8fd9\u91cc\u7528\u4e86\u4e00\u4e2a\u6280\u5de7, \u83b7\u5f97\u521a\u521a\u8fc7\u6765\u7684\u9875\u9762\u7684\u8def\u5f84request.getHeader("Referer"),\u8fd9\u6837\u52a8\u6001\u6027\u786e\u5b9e\u4e0d\u9519.
\u4e0d\u8fc7\u4e00\u822c\u7684\u5904\u7406\u65b9\u5f0f\u662f,:
\u5217\u8868 -> \u5220\u9664 -> \u5217\u8868 select.do -> delete.do -> select.do
\u5217\u8868->\u7f16\u8f91->\u5220\u9664->\u5217\u8868 select.do -> view.do->delete.do->select.do
\u8fd9\u4e2a\u4f60\u5e94\u8be5\u80fd\u660e\u767d.
\u524d\u9762\u7684\u6ca1\u4ec0\u4e48,\u5c31\u662f\u4f60\u5728\u5220\u9664\u540e,\u518d\u8df3\u8f6c\u5230\u67e5\u8be2\u9875\u9762(\u662f\u901a\u8fc7\u540e\u53f0,\u4e0d\u662f\u76f4\u63a5jsp\u8df3\u8f6c),\u518d\u67e5\u8be2\u4e00\u904d,\u8fd9\u6837\u5c31\u4e0d\u4f1a\u51fa\u73b0\u810f\u6570\u636e\u4e86(\u5982\u679c\u51fa\u73b0,\u53ef\u80fd\u662f\u522b\u7684\u539f\u56e0)
\u4f60\u8bd5\u8bd5
el\u8868\u8fbe\u5f0f\u83b7\u53d6\uff0cforeach\u5d4c\u5957\u904d\u5386
你把内容都放到xml的CDATA里面,这样就可以正常解析了cdft
绛旓細灏婃暚鐨勭敤鎴凤紝鎮ㄥソ锛佸緢楂樺叴涓烘偍绛旂枒杩欐槸鍥犱负鎮ㄦ墍娴忚鐨勭綉绔欎娇鐢ㄤ簡unicode瀛楃锛屼絾浣犲己鍒舵寚瀹氱殑瀛椾綋娌℃湁鏀寔杩欎釜锛岃缃戦〉鑷繁閫夋嫨瀛椾綋灏卞ソ浜嗐傘備綘鍦ㄩ夐」 鍐呭 瀛椾綋&棰滆壊 楂樼骇涓紝鍕鹃変笂鍏佽椤甸潰閫夋嫨鏄剧ず瀛椾綋鑰屾棤闇浣跨敤浠ヤ笂璁剧疆锛岀劧鍚庨噸鍚鐏嫄鍗冲彲銆傚笇鏈涙垜鐨勫洖绛斿鎮ㄦ湁鎵甯姪锛屽鏈夌枒闂紝娆㈣繋缁х画鍜ㄨ鎴戜滑銆
绛旓細浠婂ぉ缁欏ぇ瀹朵粙缁嶄竴涓嬪浣鍦╢irefox娴忚鍣ㄤ腑鐧诲綍甯愬彿鐨勫叿浣撴搷浣滄楠ゃ1. 棣栧厛鎵撳紑鐢佃剳锛屾壘鍒版闈笂鐨 firefox娴忚鍣ㄥ浘鏍囷紝鍙屽嚮鎵撳紑 2. 杩涘叆涓椤甸潰鍚庯紝鐐瑰嚮鍙充笂瑙掔殑涓夋í鍥炬爣 3. 鍦ㄦ墦寮鐨勮彍鍗曚腑锛岄夋嫨鐧诲綍firefox閫夐」 4. 鍦ㄦ墦寮鐨勮彍鍗曚腑锛岀户缁偣鍑荤櫥褰昮irefox閫夐」 5. 濡傚浘锛屽湪寮瑰嚭鐨勭獥鍙d腑锛杈撳叆鎴戜滑鐨勭數瀛...
绛旓細瀵逛簬缃戦〉璁捐鑰呮潵璇达紝鐏嫄娴忚鍣ㄦ槸浠栦滑宸ヤ綔蹇呭鐨勭鍣紝鎵撳紑鐏嫄娴忚鍣ㄥ湴鍧鏍杈撳叆about:config 鍚庡洖杞︼紝灏变細鍑虹幇firefox鐨勮缁嗛厤缃椤甸潰銆俧irefox蹇嵎閿悳绱㈢被锛 鏈〉鏌ユ壘锛 Ctrl+F 鍐嶆鏌ユ壘锛 F3 杈撳叆鏌ユ壘閾炬帴锛 ' ...
绛旓細鐏嫄Firefox娴忚鍣ㄥ浘鐗囦笉鏄剧ず澶勭悊鏂规1銆佹墦寮鐏嫄娴忚鍣紝鍦ㄦ祻瑙堝櫒鐨勫湴鍧鏍涓緭鍏鈥渁bout:config鈥濆苟鎸変笅鍥炶溅閿2銆佹鏃朵細鏄剧ず濡備笅鍥炬墍绀虹殑璀﹀憡鍐呭锛岀偣鍑烩滄帴鍙楅闄╁苟缁х画鈥濇寜閽3銆佺偣鍑讳箣鍚庝細杩涘叆濡備笅鍥炬墍绀虹殑鐏嫄娴忚鍣ㄩ厤缃〉闈紝鍦ㄩ〉闈椤堕儴杈撳叆鈥減ermissions.default.image鈥濊繘琛屾悳绱紝濡備笅鍥炬墍绀哄皢鍏...
绛旓細鎵惧埌鈥滈夐」鈥濓紝骞剁偣鍑伙紱4銆佺偣鍑烩滈夐」鈥濅箣鍚庯紝浼氬脊鍑鐏嫄娴忚鍣ㄧ殑璁剧疆鐣岄潰锛5銆佸湪宸︿晶鏍忕洰涓紝鐐瑰嚮甯歌锛屽叾瀹炴墦寮璁剧疆鐣岄潰锛岄粯璁や篃鏄父瑙勭晫闈紱6銆佸湪甯歌鏍忕洰涓紝绗竴涓杈撳叆妗嗗墠闈㈡槸鈥滃惎鍔 Firefox 鏃讹紙S锛夆濓紝鍦ㄦ鐨勬湯灏撅紝鎵惧埌涓嬫媺鍊掍笁瑙掞紱7銆侀夋嫨鑷繁鎰忓悜鐨勫惎鍔椤甸潰锛屾瘮濡傞夋嫨鈥鏄剧ず绌虹櫧椤碘濄
绛旓細绛:鍦‵riefox鑿滃崟涓夋嫨 宸ュ叿閫夐」鍩烘湰淇℃伅瀛椾綋鍜岄鑹茶瑷缂栫爜閫夋嫨绠浣撲腑鏂囷紝鏈灏忓瓧浣撹缃垚12锛岀‘瀹氬悗鍐嶇湅鐪缃戦〉涓婄殑鏂囧瓧灏变細涓嶄竴鏍蜂簡銆 鎴栬呬娇鐢ㄥ揩鎹烽敭ctrl+鈥+鈥/鈥-鈥濇敼鍙樺瓧浣撶綉椤靛ぇ灏忋傞棶:濡備綍鑷畾涔塅irefox鐨勪复鏃舵枃浠跺瓨鏀惧湴鍧?绛:鎵撳紑Firefox鍦板潃鏍杈撳叆about:config 鍚庡洖杞︼紝灏变細鍑虹幇Firefox鐨勮缁嗛厤缃...
绛旓細鎮ㄥソ锛佸彲鑳芥槸鏈夋墿灞曟垨鎻掍欢鍐茬獊銆傛鏃讹紝鎮ㄥ彲浠ュ皾璇曚娇鐢firefox-p-no-remote鍚姩娴忚鍣紝鏂板缓涓涓厤缃枃浠讹紝鍦ㄤ笉鍙楁墿灞曞共鎵扮殑鎯呭喌涓嬭瘯涓璇曟槸鍚﹁繕鏈夋绫婚棶棰樸傚笇鏈涙垜鐨勫洖绛斿鎮ㄦ湁鎵甯姪锛屽鏈夌枒闂紝娆㈣繋缁х画鍦ㄦ湰骞冲彴鍜ㄨ銆備簡瑙f洿澶鐏嫄娴忚鍣ㄧ殑浣跨敤灏忔妧宸э紝璇峰埌鐏嫄绀惧尯锛歨ttp://mozilla.com.cn/moz-portal....
绛旓細浠婂ぉ缁欏ぇ瀹朵粙缁嶄竴涓嬪浣鍦‵irefox鐏嫄娴忚鍣ㄤ腑璁剧疆璇㈤棶璁颁綇鐧诲綍缃戠珯鐨勮处鍙峰拰瀵嗙爜鐨勫叿浣撴搷浣滄楠ゃ1. 棣栧厛鎵撳紑鐢佃剳涓婄殑鐏嫄娴忚鍣紝杩涘叆涓椤甸潰鍚庯紝鐐瑰嚮鍙充笂瑙掔殑涓夋í鈥滀富鑿滃崟鈥濆浘鏍囥2. 濡傚浘锛屽湪鎵撳紑鐨勪富鑿滃崟涓紝鎵惧埌涓嬫柟鐨勯夐」锛岀偣鍑汇3. 濡傚浘锛屽湪鎵撳紑鐨勯夐」椤甸潰锛岀偣鍑诲乏渚х殑鈥滈殣绉佷笌瀹夊叏鈥濋夐」銆4. 鍦...
绛旓細Firefox鎸夐挳涓嬶紝鎵惧埌鈥滈夐」鈥->甯歌->鍚姩锛屽湪璁剧疆涓婚〉涓緭鍏缃戝潃锛屽嵆鍙缃负涓婚〉
绛旓細2銆佺劧鍚庡湪鍑虹幇鐨勪笅鎷夎彍鍗曚腑鎵惧埌鈥滈檮鍔犵粍浠垛濋夐」锛岀劧鍚庤繘琛岀偣鍑汇3銆佹帴鐫灏辨墦寮闄勫姞缁勪欢绐楀彛浜嗭紝鍐嶇偣鍑诲乏渚ц竟鏍忕殑鎵╁睍鑿滃崟椤癸紝鍦ㄥ彸渚т笂鏂圭殑鎼滅储妗杈撳叆UserAgentSwitcher锛岀劧鍚庣偣鍑绘悳绱㈢粨鏋滀腑鐨勫揩鎹烽摼鎺ャ4銆佸湪鎵撳紑鐨刄serAgentSwitcher绐楀彛涓紝鐐瑰嚮椤甸潰鍙充笅瑙掔殑鈥滄坊鍔犲埌Firefox鈥濇寜閽紝鐒跺悗鎵╁睍鎻掍欢灏变細鑷姩涓嬭浇骞...