zoukankan      html  css  js  c++  java
  • angularjs变量的三种表示方式

    1.在js中表示:
    $scope.变量名,如:

        $scope.searchEntity = {};
        $scope.findPage = function (page, rows) {
            $http.post('../specification/findPage?page='+page+'&rows='+rows, $scope.searchEntity).success(function (response) {
                $scope.list = response.rows;
                $scope.paginationConf.totalItems = response.total;
            });
        }
    

    2.在html代码中表示普通文本:
    {{变量名}},如:
    ```


    {{item.id}}
    {{item.specName}}

        ```
    

    3.在html代码中表示函数形参:
    函数名(变量名),如:

    		                                  <td class="text-center">                                           
    		                                 	  <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModal" ng-click="update(item.id)">修改</button>
    		                                  </td>
    
  • 相关阅读:
    装饰器(一)
    函数内置方法
    递归
    函数(三)
    python常用模块
    python模块与包
    python内置函数
    python函数
    python文件处理
    函数编程
  • 原文地址:https://www.cnblogs.com/zhz-8919/p/11229175.html
Copyright © 2011-2022 走看看