ããã以ä¸ã®ããã« XPath ã«æååãåãè¾¼ãäºãããã¾ã document.evaluate('//*[@class="' + text + '"]', document, null, 7, null); ã¾ããåããããããªã³ã¼ãæ¸ããã§ããã©ã ã§ããããã£ã¦ text ãå¤é¨ããæ¥ããã®ã ã£ãããæå³éãã®åä½ãããªããã§ããã ãã¨ãã°ã以ä¸ã®ãããªä¾ã§ãã var text = '"] | /hoge/fuga/piyo | .["'; document.evaluate('//*[@class="' + text + '"]', document, null, 7, null); ã¨ãããã㧠任æã®æååã XPath ã®å¼ã«å¤æãã JavaScript ãæ¸ãã¦ã¿ã 以ä¸ã§è©¦ãã¾ã http://amachang.sakura.ne.jp/misc/xpath_es
{{#tags}}- {{label}}
{{/tags}}