NativeScript 插件 nativescript-observable-subscribe

码农软件 · 软件分类 · NativeScript 插件 · 2019-04-29 10:43:00

软件介绍

nativescript-observable-subscribe 是一个能添加订阅功能到 observables 的 NativeScript 模块。

使用:

// viewmodel.js
    ...
    var mainViewModel = new HelloWorldModel();
    var counterPropName = 'counter';
    mainViewModel.subscribe(counterPropName, function(args){
        if (this.get(counterPropName) <= 0) {
            this.set(messagePropName, "Hoorraaay! You unlocked the NativeScript clicker achievement!");
        }
        else {
            this.set(messagePropName, this.get(counterPropName) + " taps left");
        } 
    }, mainViewModel);
    exports.mainViewModel = mainViewModel;


本文地址:https://codercto.com/soft/d/4631.html

Probability and Computing: Randomization and Probabilistic Techn

Probability and Computing: Randomization and Probabilistic Techn

Michael Mitzenmacher、Eli Upfal / Cambridge University Press / 2017-7-3 / USD 62.23

Greatly expanded, this new edition requires only an elementary background in discrete mathematics and offers a comprehensive introduction to the role of randomization and probabilistic techniques in m......一起来看看 《Probability and Computing: Randomization and Probabilistic Techn》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具