<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS: не могу прочитать значение св-ва]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9939&amp;type=atom" />
	<updated>2014-08-31T17:40:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9939</id>
		<entry>
			<title type="html"><![CDATA[Re: JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86196#p86196" />
			<content type="html"><![CDATA[<p>спасибо!</p>]]></content>
			<author>
				<name><![CDATA[im2002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28063</uri>
			</author>
			<updated>2014-08-31T17:40:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86196#p86196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86195#p86195" />
			<content type="html"><![CDATA[<p>Нет, по логике вещей у вас свойство myArr читается. А prop можно так:<br /></p><div class="codebox"><pre><code>
var myObj = new Object();
myObj.prop = &quot;test&quot;;

var myArr = new Array(&quot;prop&quot;);

WScript.Echo(myArr[0]);                    // даёт prop
WScript.Echo(myObj.prop);               // даёт test
WScript.Echo(myObj[myArr[0]]);         // даёт test
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2014-08-31T17:37:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86195#p86195</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86192#p86192" />
			<content type="html"><![CDATA[<p>извиняюсь, перепутал &quot;немного&quot;</p><div class="codebox"><pre><code>var myObj = new Object();
myObj.prop = &quot;test&quot;;

var myArr = new Array(&quot;prop&quot;);

WScript.Echo(myArr[0]);                    // даёт prop
WScript.Echo(myObj.prop);               // даёт test
WScript.Echo(myObj.myArr[0]);         // даёт ошибку, почему?   ожидал увидеть test!</code></pre></div>]]></content>
			<author>
				<name><![CDATA[im2002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28063</uri>
			</author>
			<updated>2014-08-31T15:24:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86192#p86192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86191#p86191" />
			<content type="html"><![CDATA[<p>св-во prop объекта myObj</p>]]></content>
			<author>
				<name><![CDATA[im2002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28063</uri>
			</author>
			<updated>2014-08-31T15:21:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86191#p86191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86190#p86190" />
			<content type="html"><![CDATA[<p>А какое свойство вы тут читаете?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2014-08-31T15:19:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86190#p86190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JS: не могу прочитать значение св-ва]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=86189#p86189" />
			<content type="html"><![CDATA[<p>Не могу понять, как работает интерпретатор JS в данном случае:</p><div class="codebox"><pre><code>
var myObj = new Object();
myObj.prop = &quot;test&quot;;

var myArr = new Array(&quot;test&quot;);

WScript.Echo(myArr[0]);                    // даёт test
WScript.Echo(myObj.prop);               // даёт test
WScript.Echo(myObj.myArr[0]);         // даёт ошибку, почему?   ожидал увидеть test!
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[im2002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28063</uri>
			</author>
			<updated>2014-08-31T14:51:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=86189#p86189</id>
		</entry>
</feed>
