前端 - 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.propowerdrill.cn/wenda/js/rem.js'></script> <script src='http://m.propowerdrill.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ī)號</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.propowerdrill.cn/wenda/14097.html' class='fsyz'>獲取驗(yàn)證碼</a> </p> <a href='http://m.propowerdrill.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. 前端 - CSS3問題:請問-webkit-background-clip屬性,需要寫在background屬性后面嗎?2. angular.js - angular里的ui-view里,獲取當(dāng)前頁面的狀態(tài)參數(shù)用$state.params,在vue里類似的語法是什么呢?3. javascript - 按鈕鏈接到另一個(gè)網(wǎng)址 怎么通過百度統(tǒng)計(jì)計(jì)算按鈕的點(diǎn)擊數(shù)量4. 微信開放平臺 - ios APP能不能打開微信然后通過微信跳轉(zhuǎn)到指定的URL?5. 淺談vue生命周期共有幾個(gè)階段?分別是什么?6. node.js - nodejs+express+vue7. Mysql啟動發(fā)生系統(tǒng)錯(cuò)誤10678. nginx - vue-cli生成的項(xiàng)目打包發(fā)到服務(wù)器后怎么代理api?9. html5 - h5+中webview的show方法有延遲10. 大家好,我想請問一下怎么做搜索欄能夠搜索到自己網(wǎng)站的內(nèi)容。
