
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
anima-dialog
Advanced tools
弹出框,兼容webView 的弹出控件,Dialog 、Alert、Confirm、Prompt
其中 : Alert、Confirm、Prompt 都是单例类
简单示例
<span id="p1">文本信息</span>
var Dialog = require('anima-dialog');
var dialog = new Dialog({
content : '#p1', //也可以是文本和html
title : '弹出框'
});
dialog.show();
var Dialog = require('anima-dialog');
Dialog.Alert.show({
title : '提示信息',
message : 'alert 信息',
button : '按钮'
},function(){
console.log('确认')
});
var Dialog = require('anima-dialog');
Dialog.Confirm.show({
title : '确认信息',
message : '是否确认某些信息?',
okButton : 'ok',
cancelButton : 'cancel'
},function(rst){
console.log(rst.ok)
});
var Dialog = require('anima-dialog');
Dialog.Prompt.show({
title : '确认信息',
value : '100', //默认值
required : true //是否必填
},function(rst){
console.log(rst.ok + ' ' + rst.value)
});
String
String
Array
buttons : [{
id : 'cancel',
cls : 'am-button am-button-sm am-button-white',
text : '取消',
handler : function(){
var cancel = this.get('cancel');
cancel && cancel.call(this);
}
},{
id : 'ok',
cls : 'am-button am-button-sm',
text : '确认',
handler : function(){
var success = this.get('success');
success && success.call(this);
}
}]
Function
Function
String
String
String
Function
String
String
String
String
String
String
Boolean
String
String
FAQs
The best project ever.
We found that anima-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.