{"id":2633,"date":"2014-05-09T15:02:59","date_gmt":"2014-05-09T06:02:59","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=2633"},"modified":"2014-05-09T15:02:59","modified_gmt":"2014-05-09T06:02:59","slug":"php%e3%81%8b%e3%82%89%e3%81%aejavascript%e5%87%ba%e5%8a%9b%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2014\/05\/09\/2633\/","title":{"rendered":"PHP\u304b\u3089\u306eJavaScript\u51fa\u529b\u3067\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>PHP\u30b9\u30af\u30ea\u30d7\u30c8\u4e2d\u306e\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067JavaScript\u3092\u51fa\u529b\u3055\u305b\u3088\u3046\u3068\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff1a<\/p>\n<div class=\"hl-surround\" ><div class=\"hl-main\"><pre>&lt;?php\r\nprint &lt;&lt;&lt;EOF\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\nvar obj = function(){$('#foo').text('OK');}\r\n&lt;\/script&gt;\r\n\r\nEOF;<\/pre><\/div><\/div>\n<p><strong>\u5b9f\u884c\u7d50\u679c\uff08\u30a8\u30e9\u30fc\uff09<\/strong><\/p>\n<div class=\"hl-surround\" style=\"height:16.8px;\"><div class=\"hl-main\"><pre>PHP Parse error:  syntax error, unexpected '(', expecting T_VARIABLE or '$' in \/tmp\/foo.php on line 4<\/pre><\/div><\/div>\n<p>function\u4e2d\u3067jQuery\u7d61\u307f\u306e$(&#8216;&#8230;&#8217;)\u306e\u7b87\u6240\u3092\u89e3\u91c8\u3057\u3088\u3046\u3068\u3057\u3066\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u3002<\/p>\n<p>\u8a66\u3057\u306b\u3001\u540c\u3058\u500b\u6240\u3092<br \/>\n<strong>\u5bfe\u7b56\uff11<\/strong><\/p>\n<div class=\"hl-surround\" style=\"height:16.8px;\"><div class=\"hl-main\"><pre>var obj = function(){1+$('#foo').text('OK');}<\/pre><\/div><\/div>\n<p>\u3068\u3059\u308b\u3068\u554f\u984c\u306a\u304f\u51fa\u529b\u3055\u308c\u3066\u3001JavaScript\u3082\u52d5\u4f5c\u3059\u308b\u3002<\/p>\n<p>PHP\u5074\u306e\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5074\u3067\u306e\u5909\u6570\u5c55\u958b\u306e\u554f\u984c\u304b\u3068\u601d\u3044\u3064\u3044\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u3059\u308b\u3068<br \/>\n<strong>\u5bfe\u7b56\uff12<\/strong><\/p>\n<div class=\"hl-surround\" style=\"height:16.8px;\"><div class=\"hl-main\"><pre>var obj = function(){\\$('#foo').text('OK');}<\/pre><\/div><\/div>\n<p>\u3053\u308c\u3082\u554f\u984c\u306a\u304f\u51fa\u529b\u3055\u308c\u3066\u3001JavaScript\u3082\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n<p>\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306e\u5909\u6570\u5c55\u958b\u306e\u7406\u89e3\u4e0d\u8db3\u304c\u6839\u672c\u539f\u56e0\u305d\u3046\u3060\u304c\u3001\u4e0d\u8981\u306a\u5f0f\u304c\u5165\u3063\u3066\u3053\u306a\u3044\u5f8c\u8005\uff08<strong>\u5bfe\u7b56\uff12<\/strong>\uff09\u306e\u307b\u3046\u304c\u3044\u3044\u306e\u304b\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u30b9\u30af\u30ea\u30d7\u30c8\u4e2d\u306e\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067JavaScript\u3092\u51fa\u529b\u3055\u305b\u3088\u3046\u3068\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff1a &lt;?php print &lt;&lt;&lt;EOF &lt;script type=&#038;qu [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[41,60],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2633"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=2633"}],"version-history":[{"count":2,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2633\/revisions"}],"predecessor-version":[{"id":2635,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/2633\/revisions\/2635"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=2633"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}