前端 - 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 - 各位大神们,你们混合开发,web方式中更推荐用什么框架呀? react?vue?angular?谢谢~2. angular.js - angularjs的自定义过滤器如何给文字加颜色?3. angular.js使用$resource服务把数据存入mongodb的问题。4. docker-machine添加一个已有的docker主机问题5. javascript - htaccess rewrite 的问题6. javascript - IOS微信audio标签不能通过touchend播放7. 前端 - 集思广益,如何用CSS实现数字上面有一个点8. PHP类中的$this9. 老师百度网盘分享一下WampServer的包啊,我们下载几kb要下载一天的.10. html5 - vuex 为什么需要action,我发现进行异步操作回调中直接操作mutation也没有报错
