显示多个信息到我的输入我的、多个、信息

2023-09-14 00:25:20 作者:随疯奔跑

我有一个输入:的

I have an input:

<div class="search-field search-field-date search-field-calendar ui-datepicker-calendar columns small-3">
    <input type="text" data-ng-model="goDate"
           placeholder="Date d'aller" data-mtx-datepicker data-mtx-maxdate="returnDate" data-mtx-time="horairesAller" />
</div>

的当我选择日期,我有这样的:的

When i select date i have this:

现在我想这样的显示多个信息:的

Now i want to display multiple information like this:

的当我选择日期:的

When i select date:

我不知道我怎么可以这个..?THX。

I don't know how i can to this ..? Thx.

plnkr

推荐答案

更新您的code和替换:

Update your code and replace:

 $scope.today = function() {
    $scope.dt = new Date();
  };

With:
 $scope.dt = [];
  $scope.today = function() {
     $scope.dt[0] = 'DU:'
    $scope.dt[1] = new Date();
     $scope.dt[2] = 'JOURNEE'
  };

在HTML:

ng-model="dt"