測試程式碼:
<code><span><span><?php</span><span>$a</span> = <span>new</span> controller; <span>$a</span>->test(); <span><span>class</span><span>controller</span>{</span><span>public</span><span>$menuList</span> = time(); <span>public</span><span><span>function</span><span>test</span><span>()</span>{</span><span>echo</span><span>$this</span>->menuList; } } <span>?></span></span></span></code>
這樣會報錯的,為什麼
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介紹了php 對類別屬性 賦值 疑惑,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。