2012-10-08 15 views
1

我試過這個工作正常的小例子,但我無法給出期望的單詞之間的空間。如何在openlaszlo文本模式中包含

<inputtext width="150" 
    pattern="[[email protected]:;#$%\^*()_\-\=+/&amp;,./?&lt;&gt;&quot;&apos;{}[]\\|`~ ]*"> 
    This text is editable. 
    </inputtext> 

但是,如果我給

模式=「[A-ZA-Z0-9 @:;!#$%\^*()_- \ = +/&,/ < > " '   {} [] \ |。?`〜] *」

它顯示error.how文本pattern.plz幫助中包含此空間....

回答

2

您必須使用空格字符而不是& nbsp;由於空間轉換成了一個空間,僅在文本字段接收輸入之後。

<canvas> 

    <inputtext width="150" 
    pattern="[A-Za-z0-9 ]*"> 
    This text is editable. 
    </inputtext> 

</canvas> 
相關問題