array:安全React阵列(Meteor)

时间:2021-06-17 21:20:57
【文件属性】:
文件名称:array:安全React阵列(Meteor)
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-17 21:20:57
JavaScript 安装 meteor add templates:array 此软件包仅适用于客户端。 例子 基本使用 创建一个新的React式数组。 var array = new ReactiveArray ( ) ; 模板使用 创建一个范围为模板的新React式数组。 Template . myTemplate . created = function ( ) { this . array = new ReactiveArray ( ) ; } ; 将内容添加到您在模板中创建的数组中。 Template . myTemplate . events ( { 'click .item' : function ( e , t ) { t . array . push ( e . target . value ) ; } } ) ; 显示添加到您在模板中创建的数组中的内容
【文件预览】:
array-master
----templates:array.js(1KB)
----package.js(500B)
----templates:array-tests.js(163B)
----LICENSE(1KB)
----README.md(2KB)
----.versions(387B)

网友评论