
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.
基于ES6编写的常用JS函数
检查当前的元素是否含有某个特定的类,如果有,则返回true。
为每个匹配的元素添加指定的类名,一个或多个要删除的CSS类名,请用空格分开。
从所有匹配的元素中删除全部或者指定的类,一个或多个要删除的CSS类名,请用空格分开。
如果存在(不存在)就删除(添加)一个类。
显示隐藏的匹配元素。
隐藏显示的元素。
// abc.com?test=123
CUJs.String.getQueryString('test') // 123
let abc = 'abc12345678'
CUJs.String.getQueryString(abc,7) // abc1234...
let arr = [1,3,4,5,8,5,3,9]
CUJs.Array.unique(arr) // [1,3,4,5,8,9]
let _date = new Date();
CUJs.Date.format('yyyy-MM-dd hh:mm:ss',_date) // 2018-05-30 10:05:54
CUJs.Date.format('yyyy-MM-dd',_date) // 2018-05-30
CUJs.Date.format('M月d日 hh:mm:ss',_date); // 5月30日 10:05:54
CUJs.Date.format('yyyy/MM/dd hh:mm',_date); // 2018/05/30 10:05
var app = document.getElementById('app');
var count = new CUJs.CountDown(app,{
countDownSeconds: 7, //倒计时间设置
doubleDigit: true, //'7'秒显示为'07'
secondsOnly: false, //是否只显示秒
callback = () => { //倒计时完回调函数
return false;
}
})
FAQs
Common Use Js
We found that cuj 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.