美文网首页
ionic拨打电话

ionic拨打电话

作者: 菠菜盼娣 | 来源:发表于2018-12-03 15:23 被阅读0次

    相关html 代码:

    ```

    <div ng-repeat="nu in num" class="col col-25 whiteFore"

          ng-click="callPhone({{nu.tel}})">

            <i class="icon ion-ios-telephone"></i>

            电话{{nu.tel}}

            </div>

    ```

    相关js代码

    ```

    $scope.num = [{

          tel:'18838.....'

        },

        {

          tel:'13137......'

        },{

          tel:'1513......'

        }]

        $scope.callPhone = function (mobilePhone) {

            $window.location.href = "tel:" + mobilePhone;

        };

    ```

    相关文章

      网友评论

          本文标题:ionic拨打电话

          本文链接:https://www.haomeiwen.com/subject/tdjzqqtx.html