前端 - angular报错?
问题描述
<!DOCTYPE html><html lang='en' ng-app='app'><head> <meta charset='UTF-8'> <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'> <script src='https://www.haobala.com/wenda/js/rem.js'></script> <script src='https://www.haobala.com/wenda/js/Angular.js'></script> <title>longin</title> <style>body{ padding-top:1.5rem; display: flex; justify-content: center; align-items: center; font-size: 16px}input{} </style></head><body> <p ng-controller='defaultCtrl'><h1>律所SaaS系统</h1><p class='longin'> <h3>登录</h3> <p class='phoneNub'><span>手机号</span><input type='number' ng-model='phone' ng-change='check()'> </p> <p class='yzm'><span>验证码</span><input type='number' name='' ng-model='yzm'><a href='https://www.haobala.com/wenda/14097.html' class='fsyz'>获取验证码</a> </p> <a href='https://www.haobala.com/wenda/14097.html' class='loginTo'>登录</a></p> </p></body><script> angular.module('app',[]) .controller('defaultCtrl',[’$scope’,function($scope){$scope.phone='',$scope.yzm='',$scope.check = function(){ console.log('2') if(/^1(3|4|5|7|8)d{9}$/.test($scope.phone)){alert('1') }} }])</script></html>报错VM366:158 Uncaught TypeError: Cannot read property ’description’ of undefined
问题解答
回答1:确定是angular报的错?检查下rem.js吧

相关文章:
1. angular.js - angular指令中的scope属性中用&获取父作用域函数的问题2. angular.js - 如何控制ngrepeat输出的个数3. node.js - 问个问题 Uncaught (in promise)4. python爬虫 - scrapy使用redis的时候,redis需要进行一些设置吗?5. 网页爬虫 - python requests爬虫,如何post payload6. python的MySQLdb库中的executemany方法如何改变默认加上的单引号?7. mysql5.7就没有官方性质的详细配置文件吗?求大神告知8. CSS3 flex 如何让高度不等的同排等高?9. 用CSS3 box-sizing 属性实现两个并排的容器,如果想让容器中间有间隔该如何实现10. python3.x - python3.5.2安装时make报错求助

网公网安备