http://www.cnblogs.com/liuling/p/2014-4-19-04.html   redis

Base64.encode($( "#byerName").val()) js代码
payUrl = encodeURI(payUrl); js代码
encodeURIComponent();js中提交请求时参数转码

padding-bottom:2px\9  \9 ie9及以下
padding-bottom:2px\0  \0 ie8支持
*padding-bottom:2px   *  ie7支持
:root .tab {padding-bottom:2px  \0/IE9; /*只有IE9 hack 识别,注意: 1、  :root是IE9新加的

var doc = document.getElementById("alipay_scancode_id").contentWindow.document;
var html = doc.body.innerHTML
//如果主子页面跨域名,夸域名访问不到document

************************************************************* javaScript ************************************************************************

 jQuery.fn.extend()是用在jQuery对象上面的,有两种写法,实现对象链式调用
(function($){
$.fn.myTestFunc = function(options){
$(this).text(options);
return $(this);
}
})(jQuery); (function($){
$.fn.extend({
"myTestFunc":function(options){
$(this).text(options);
}
});
})(jQuery);
使用:
$("#xmh_func").myTestFunc("ttt"); 对jQuery扩展,在jQuery类/命名空间上增加新函数,或者叫静态方法,$可被jQuery替代
$.extend({
qiaodaima:function(){
alert("我会敲代码了");
}
})
使用:
$.qiaodaima(); 自执行的匿名函数闭包特性
$(function(){
alert();
}) (function($){
  //do something;
})(jQuery)

************************************************************* easyUI************************************************************************

var ed1 = $("#tt").datagrid().data().datagrid.options.columns[0];
var ed = $("#tt").datagrid("getEditors",1);
alert(ed1[0].field); editor:{type:'combo',options:{}} 加载后触发
$("#tt").datagrid({
onLoadSuccess:function(data){
alert(data.rows[0].transNo+" "+data.rows[0].transNo_colmun);
}
});
合并单元格
$("#tt").datagrid('mergeCells',{index:rowIndex,field:"payMode_colmun",rowspan:2}) 单元格编辑
$("#tt").datagrid('beginEdit', 1);
var edi = $("#tt").datagrid('getEditor',{index:1,field:'transNo_colmun'}); var func = function(s){alert(s)}
dg.datagrid('options').queryParams;
$('#tt').datagrid('getSelected');
datagrid("getRows")[i][ColArray[j]]
$('#tt').datagrid('options').url="orcodelog/search.dhtml?payMode=040";

随笔 js-----------------------------------------------------------------------------------------------------的更多相关文章

  1. 随笔 JS 字符串 分割成字符串数组 并动态添加到指定ID的DOM 里

    JS /* * 字符串 分割成字符串数组 并动态添加到指定ID的DOM 里 * @id 要插入到DOM元素的ID * * 输入值为图片URL 字符串 * */ function addImages(i ...

  2. html回顾随笔JS(*^__^*)

    ---恢复内容开始--- map遍历 function b(){ var week = new Map(); week.set("Mon","星期一"); we ...

  3. 随笔js

    js中的函数定义之后,函数名就是这个函数(JS中函数其实也是对象)的地址(句柄) js读取函数内存地址: 首先想读内存地址只有C或者C++,汇编抛开不谈,其他高级语言一般都封装起来了,不过我也不能确定 ...

  4. JS调用PageMethods

    http://www.cnblogs.com/Ren_Lei/archive/2010/07/14/1777413.html JS调用PageMethods 操作步骤: 1.新建一个WebApplic ...

  5. jquery的.get方法说解

    ·Customer类 public class Customer { public int Unid { get; set; } public string CustomerName { get; s ...

  6. MVC学习随笔----如何在页面中添加JS和CSS文件

    http://blog.csdn.net/xxjoy_777/article/details/39050011 1.如何在页面中添加Js和CSS文件. 我们只需要在模板页中添加JS和CSS文件,然后子 ...

  7. js随笔

    在js中,一个[]认为是数组:{}认为是Json对象:

  8. Vue.JS入门学习随笔

    PS:先说说学习Vue的缘由吧,学习完了React之后,突然发现又出了一款叫做vue的框架,而且据说可以引领又一波新框架的潮流,我容易吗我!!!   Vue.js(读音 /vjuː/, 类似于view ...

  9. 【随笔】js加载

    有时候,当发现js操作一个dom的时候,发现dom没有找到,这是由于html没有加载完就开始操作该dom的缘故,所以需要在html文档加载完后再加载js,于是我们可以这么做: js方法:window. ...

  10. ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️html,js随笔。❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

    a标签本身的文字居中. a{ display:block; text-align:center; } 设置div1在另一个div2里居中,(写了左边margin 就别写右边了不然ie6有毛病,当然本身 ...

随机推荐

  1. boost生成json

    boost property_tree解析json文件相关文档如下:json_parser.basic_ptree json_parser:read_json(filename, ptree):用于将 ...

  2. https://github.com/Lushenggang/show-pdf在线浏览pdf文件在线浏览pdf文件

    在线浏览pdf文件 https://github.com/Lushenggang/show-pdf https://github.com/Lushenggang/show-pdf

  3. api-gateway-engine知识点(1)

    1     密钥绑定时,通过Channel 实现监控 后台发送数据 :      redisTemplate.convertAndSend(RedisMessageChannel.API_GATEWA ...

  4. [LeetCode] 162. Find Peak Element_Medium tag: Binary Search

    A peak element is an element that is greater than its neighbors. Given an input array nums, where nu ...

  5. bootstrap modal与select2使用冲突解决

    今天发现项目使用bootstrap modal 与 jquery select2 结合时发现select2不起作用,点击select框不显示选项,查阅资料后发现是因为modal层遮挡了select2的 ...

  6. 服务器--apache启用多个端口的方法

    apache启用多个端口的方法 使用本地ip:端口号,或者修改hosts文件+域名的方法来进行本地多站点web调试. 注意这里是用apache 不是iis 1.安装好AppServ2.5.9软件 官网 ...

  7. Express web框架 upload file

    哈哈,敢开源,还是要有两把刷子的啊 今天,看看node.js 的web框架 Express的实际应用 //demo1 upload file <html><head><t ...

  8. linux 释放内存及查看内存命令

    查看内存使用情况: free -m 清理内存: echo 1 > /proc/sys/vm/drop_caches 再次查看内存使用情况 free -m 查看内存条数命令: dmidecode  ...

  9. cocos2d JS-(JavaScript) cc.each循环遍历对象

    有了它,妈妈再也不用担心我的数组会越界啦!! each()方法能使DOM循环结构简洁,不容易出错.each()函数封装了十分强大的遍历功能,使用也很方便,它可以遍历一维数组.多维数组.DOM, JSO ...

  10. 转:django模板标签{% for %}的使用(含forloop用法)

    django模板标签{% for %}的使用(含forloop用法)  {%  %}虽然这个是写在html中,但是这里边写的是服务端代码 在django模板标签中,{% for %} 标签用于迭代序列 ...