码迷,mamicode.com
首页 > 其他好文 > 详细

地地道道的

时间:2015-12-18 14:45:01      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:

          }).
              error(function(data, status, headers, config) {
                  
              });
      };
      
      $scope.$watch(‘content‘, function(newVal, oldVal) {
         if (angular.isDefined(newVal)) {
             console.log($("<div>").html(newVal).text().replace(/(\r\n|\n|\r)/gm,"").replace(/^\s+/g," ").replace(/\s+$/g," "));
             var length=$("<div>").html(newVal).text().replace(/(\r\n|\n|\r)/gm,"").replace(/^\s+/g," ").replace(/\s+$/g," ").length;
             if (length>0) {
                 $scope.disabledSubmit=false;
             } else {
                 $scope.disabledSubmit=true;
             }
         }
      });
      
      $scope.submit=function() {
          var url=‘/Demo/comment‘,

地地道道的

标签:

原文地址:http://www.cnblogs.com/huayushuangfei/p/5056872.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!