稻草人369

稻草人369

这家伙有点懒,还没写个性签名!

  • 财富值

    35

  • 威望值

    0

  • 总积分

    55

个人信息

  • 发布了话题
    2017-12-03 15:52浏览(78) | 回复(1)
  • 回复了话题 select2

    $award =$form->field($award_model, 'award_year')->widget(Select2::classname(), [

                            'data' => $award_model->getAwardList(7615),
                            'language' => 'zh-cn',
                            'options' => ['placeholder' =>$award_year],
                            'pluginOptions' => [
                                'allowClear' => true,
                                'tags' => true,
                            ],
                            'pluginEvents' => [
                                'change' => 'function(){
                                 $.post("'.yii::$app->urlManager->createUrl('video/getaward').'&type=1&parent_award_id="+$(this).val(),function(data){
                                 $("#tag-award_award").html(data);
                                 $("#tag-specific_award").html("<option value=>请选择具体的奖项</option>");
                            })}',
                            ],
                        ]);
                        $award .=$form->field($award_model, 'award_award')->widget(Select2::classname(), [
                            'data' =>$award_model->getAwardList($award_year_id),
                            'language' => 'zh-cn',
                            'options' => ['placeholder' => $award_award],
                            'pluginOptions' => [
                                'allowClear' => true,
                                'tags' => true,
                            ],
                            'pluginEvents' => [
                                'change'=>'function(){
                                $.post("'.yii::$app->urlManager->createUrl('video/getaward').'&type=2&parent_award_id="+$(this).val(),function(data){
                                $("#tag-specific_award").html(data);
                             });}',
                            ],
                        ]);
                        $award .=$form->field($award_model, 'specific_award')->widget(Select2::classname(), [
                            'data' => $award_model->getAwardList($award_award_id),
                            'language' => 'zh-cn',
                            'options' => ['placeholder' => $specific_award],
                            'pluginOptions' => [
                                'allowClear' => true,
                                'tags' => true,
                            ],
                        ]);
                        echo $award;
    
    2017-11-30 17:18查看
  • 广告来的很突然

    2017-11-28 21:43查看
  • 用JQ咯,选中就给他加一个style属性:比如说背景颜色

    2017-11-28 21:41查看
  • 2017-11-28 21:36
  • 发表了说说
    yii2如何做评分?有插件吗?求助
    2017-11-24 16:25浏览(55) | 回复(1)
  • 回复了 的评论
    composer require kartik-v/yii2-widget-datetimepicker "*"
    

    这个在哪运行?

    CLU 也就是cmd

    2017-11-10 18:04查看
  • 2017-11-10 已签到
    连续签到1天,获得了5个金钱
    2017-11-10 18:00

职场新人

等级规则
55/10055% Complete

资料完整度

10/10010% Complete

用户活跃度

0/1000% Complete

Ta的关注

1

Ta的粉丝

1

Ta的访客

1