「Knockout.js」の版間の差分
imported>Administrator |
imported>Administrator |
||
| 68行目: | 68行目: | ||
return this.firstName() + " " + this.lastName(); | return this.firstName() + " " + this.lastName(); | ||
}, this); | }, this); | ||
}; | }; | ||
// バインディング | // バインディング | ||
| 83行目: | 78行目: | ||
<p>Last name : <input data−bind="value: lastName" /></p> | <p>Last name : <input data−bind="value: lastName" /></p> | ||
<p>Full name : <strong data-bind="text: fullName"></strong></p> | <p>Full name : <strong data-bind="text: fullName"></strong></p> | ||
</body> | </body> | ||
</html> | </html> | ||