我想知道是否有可能在聚合物火多重功能上點擊或輸入等多種功能 - 聚合物
例如使用時:
HTML (清單逐一)
<paper-input label="text please" on-input="funct1;funct2"></paper-input>
JS
funct1 : function() {
code here to do something
},
funct2 : function() {
code here to do something
},
或........................
HTML (將它們分組)
<paper-input label="text please" on-input="allFuncts"></paper-input>
JS
allFuncts : function() {
funct1;
funct2;
},
funct1 : function() {
code here to do something
},
funct2 : function() {
code here to do something
},
onclick/oninput普通JS標籤在聚合物中不起作用,它們被替換爲點擊和輸入。所以這對我不起作用:-( – physicsboy