
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-plugins-http
Advanced tools
# 需要依赖
npm install angular
# 安装
npm install angular-plugins-http
#使用
#angular
angular.module("app", ["http"]);
<!-- 设置全局token变量名 -->
window.localStorage.accessToken="accessToken";
<!-- 设置token值 -->
window.localStorage.token="abc";
<!-- post请求 -->
data 为提交的数据
url 为请求地址
params 为请求地址的参数
http.post({data: Array,url: http url,params:Object})
<!-- get请求 -->
url 为请求地址
params 为请求地址的参数
http.get({url: http url,params:Object})
<!-- 设置token名称 -->
window.localStorage.accessToken = "token";
<!-- 设置token值 -->
window.localStorage.token = "token";
<!-- 获取当前地址的参数,如果没有则返回null -->
http.getParams(参数名称);
或者
http.getParams(参数名称,[你的url地址否则是当前地址]);
<!-- 给当前地址添加参数,并返回当前地址 -->
http.setParams(参数名称,参数值,[你的url地址否则是当前地址]);
<!-- 更新当前地址某个参数,并替换当前地址 -->
http.replaceState(参数名称,参数值,[你的url地址否则是当前地址]);
<!-- 添加一个历史记录 -->
http.pushState(参数名称,参数值,[你的url地址否则是当前地址]);
<!-- 合并两个json -->
http.extend(原json,新json);
请求地址默认会在url地址加上timestamp时间戳.
FAQs
Unknown package
The npm package angular-plugins-http receives a total of 4 weekly downloads. As such, angular-plugins-http popularity was classified as not popular.
We found that angular-plugins-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.