因项目需求,需要对用户信息进行加密(以登录为例),前台js中对用户名密码进行加密传输。然后后台进行解密操作 先看一下效果图未对其加密传输对其加密传输1.前台JS
$(function() {
$("#btn").click(function() {
var username = encode64($("#username").val()); //对数据加密
var passwo...
分类:
编程语言 时间:
2015-04-03 22:33:15
阅读次数:
383
//BUTTON防止暴力点击运行的JSvar BTN_METHOD = function(fn){ if(fn){ fn.call(this); this.onclick=null; var that = this; var btn = $(this); var oc=btn.attr('c...
分类:
Web程序 时间:
2015-04-03 16:53:50
阅读次数:
169
- (void)popTitleView:(UIButton *)btn{ if (popView.superview ==self.view) { CATransition *animation =[CATransition animation]; animation.delegat...
分类:
其他好文 时间:
2015-04-03 13:22:54
阅读次数:
134
1.Sender 指的是被点击的控件。默认为object类。1 private void btnc1_Click(object sender, RoutedEventArgs e)2 {3 Button btn = (Button)sender;4 ...
1、IE中不兼容ajax中data最后一个参数加逗号,其余chrome Firefox均支持。code: 1 $("document ").ready(function() { 2 $(".btn_fbpl").click(function...
分类:
编程语言 时间:
2015-04-02 18:41:01
阅读次数:
153
点赞和取消代码(jquery)点赞代码:jQuery("a.qz_like_btn_v3[data-clicklog=‘like‘]").each(function(index,item){console.log(item);jQuery(item).trigger(‘click‘);});jQuery(window).scroll(function(){jQuery("a.qz_like_btn_v3[data-clicklog=‘like‘]").each(function(inde..
分类:
Web程序 时间:
2015-04-02 16:38:23
阅读次数:
265
/// /// 导出功能 /// /// /// protected void btn_export_Click(object sender, EventArgs e) { try { string st...
分类:
其他好文 时间:
2015-04-01 16:53:42
阅读次数:
81
#import "ViewController.h"@interface ViewController (){ UIButton *btn;}@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoa...
分类:
其他好文 时间:
2015-04-01 16:50:06
阅读次数:
120
在JQuery中,#代表id选择,如果找到某个对象可以用$("#btn")来操作这个对象的属性和事件。如:$("#btn").click(function(){alert("hello")})也可:$("#btn").click(function({$("#div1").hide(1000)$("#...
分类:
Web程序 时间:
2015-03-31 17:46:14
阅读次数:
145
选择喜欢的兰花品种: 蕙兰 建兰 寒兰 墨兰春兰莲瓣兰 //全选 $("input[name='ay_check']").bind("click",function(){ var btn_id = $(this).attr("id"); if(btn_id){ ...
分类:
Web程序 时间:
2015-03-29 15:04:28
阅读次数:
136