yuncms/yuncms-collection

此包已被弃用,不再维护。未建议替代包。

yuncms的集合模块。

安装次数1,830

依赖: 1

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:yii2-extension

2.0.2.2 2018-03-22 05:34 UTC

This package is auto-updated.

Last update: 2022-07-09 17:20:40 UTC


README

yuncms的集合模块。

Latest Stable Version Total Downloads Build Status License

安装

安装此扩展的首选方式是通过composer

运行以下命令之一:

$ composer require yuncms/yuncms-collection

或者添加以下内容到你的composer.json文件的require部分。

"yuncms/yuncms-collection": "~2.0.0"

require

使用

/**
 * 发起收藏
 * @param {string} model
 * @param {int} model_id
 * @param callback
 */
function collection(model, model_id, callback) {
    callback = callback || jQuery.noop;
    jQuery.post("/collection/collection/store", {model: model, model_id: model_id}, function (result) {
        return callback(result.status);
    });
}

许可协议

此软件基于MIT许可证发布。详情请参阅打包的LICENSE文件。