前端 - angular報(bào)錯(cuò)?
問題描述
<!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='http://m.4tl426be.cn/wenda/js/rem.js'></script> <script src='http://m.4tl426be.cn/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系統(tǒng)</h1><p class='longin'> <h3>登錄</h3> <p class='phoneNub'><span>手機(jī)號(hào)</span><input type='number' ng-model='phone' ng-change='check()'> </p> <p class='yzm'><span>驗(yàn)證碼</span><input type='number' name='' ng-model='yzm'><a href='http://m.4tl426be.cn/wenda/14097.html' class='fsyz'>獲取驗(yàn)證碼</a> </p> <a href='http://m.4tl426be.cn/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>報(bào)錯(cuò)VM366:158 Uncaught TypeError: Cannot read property ’description’ of undefined
問題解答
回答1:確定是angular報(bào)的錯(cuò)?檢查下rem.js吧
相關(guān)文章:
1. python - 如何正則字符串中的所有漢字2. mysql - 千萬級(jí)數(shù)據(jù)的表,添加unique約束,insert會(huì)不會(huì)很慢?3. python - oslo_config4. mysql - 分庫分表、分區(qū)、讀寫分離 這些都是用在什么場景下 ,會(huì)帶來哪些效率或者其他方面的好處5. mysql - 如何減少使用或者不用LEFT JOIN查詢?6. mysql - eclispe無法打開數(shù)據(jù)庫連接7. mysql 5個(gè)left關(guān)鍵 然后再用搜索條件 幾千條數(shù)據(jù)就會(huì)卡,如何解決呢8. mysql - jdbc的問題9. 圖片鏈接的地址怎么獲得的10. 視頻文件不能播放,怎么辦?
