- 博客(6)
- 收藏
- 关注
原创 windows下更新npm node的方法
一:更新npm1.查看当前版本npm -v2.根据官网(https://www.npmjs.com/get-npm)提供的命令更新:npm install npm@latest -g3.我的电脑出现了如下错误:C:\Users\lenovo\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js:79 let notifier = requ...
2018-05-06 16:42:43
5970
1
原创 学习angular.JS phoneCat遇到的问题
Uncaught Error: [$injector:nomod] Module 'phoneDetail' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as...
2018-05-03 11:30:51
200
原创 ajax请求跨域 Charles调试
var _mm={request:function (param) {var _this=this;$.ajax({type:param.method||'get',url:param.url||'',dataType:param.type||'json',data:param.data||'',success:function(res){//请求成功if
2017-10-21 11:44:23
1810
3
原创 获取url参数window.location.search.substr(1).match(reg)
getUrlParam:function(name){ var reg=new new RegExp('(^|&)'+name+'=([^&]*)(&|$)'); var result=window.location.search.substr(1).match(reg); return result?decodeURIComponent(result[2]:null},
2017-10-21 11:28:59
13459
2
原创 ajax步骤、状态码、get/post方式区别、封装ajax函数
window.onload = function() {var oBtn = document.getElementById('btn');oBtn.onclick = function() {//打开浏览器/*1.创建一个ajax对象ie6以下new ActiveXObject('Microsoft.XMLHTTP')*/var xhr = null;try
2017-10-21 11:15:34
851
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人