随笔 js-----------------------------------------------------------------------------------------------------
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-----------------------------------------------------------------------------------------------------的更多相关文章
- 随笔 JS 字符串 分割成字符串数组 并动态添加到指定ID的DOM 里
JS /* * 字符串 分割成字符串数组 并动态添加到指定ID的DOM 里 * @id 要插入到DOM元素的ID * * 输入值为图片URL 字符串 * */ function addImages(i ...
- html回顾随笔JS(*^__^*)
---恢复内容开始--- map遍历 function b(){ var week = new Map(); week.set("Mon","星期一"); we ...
- 随笔js
js中的函数定义之后,函数名就是这个函数(JS中函数其实也是对象)的地址(句柄) js读取函数内存地址: 首先想读内存地址只有C或者C++,汇编抛开不谈,其他高级语言一般都封装起来了,不过我也不能确定 ...
- JS调用PageMethods
http://www.cnblogs.com/Ren_Lei/archive/2010/07/14/1777413.html JS调用PageMethods 操作步骤: 1.新建一个WebApplic ...
- jquery的.get方法说解
·Customer类 public class Customer { public int Unid { get; set; } public string CustomerName { get; s ...
- MVC学习随笔----如何在页面中添加JS和CSS文件
http://blog.csdn.net/xxjoy_777/article/details/39050011 1.如何在页面中添加Js和CSS文件. 我们只需要在模板页中添加JS和CSS文件,然后子 ...
- js随笔
在js中,一个[]认为是数组:{}认为是Json对象:
- Vue.JS入门学习随笔
PS:先说说学习Vue的缘由吧,学习完了React之后,突然发现又出了一款叫做vue的框架,而且据说可以引领又一波新框架的潮流,我容易吗我!!! Vue.js(读音 /vjuː/, 类似于view ...
- 【随笔】js加载
有时候,当发现js操作一个dom的时候,发现dom没有找到,这是由于html没有加载完就开始操作该dom的缘故,所以需要在html文档加载完后再加载js,于是我们可以这么做: js方法:window. ...
- ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️html,js随笔。❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
a标签本身的文字居中. a{ display:block; text-align:center; } 设置div1在另一个div2里居中,(写了左边margin 就别写右边了不然ie6有毛病,当然本身 ...
随机推荐
- react-native-image-picker iOS设置
效果图,因为我用的是模拟器,所以拍照功能没有效果,不过可从相册选择,下面是具体的效果图 把react-native-image-picker添加到项目 yarn add react-native-im ...
- 012-Future、FutureTask、CompletionService 、CompletableFuture
一.概述 创建线程的两种方式,一种是直接继承Thread,另外一种就是实现Runnable接口.这两种方式都有一个缺陷就是:在执行完任务之后无法获取执行结果.如果需要获取执行结果,就必须通过共享变量或 ...
- PHP 判断括号是否闭合
一开始的思路就是判断每种括号的开闭数量是否相等,其实虽然也能实现但是搞得太复杂了: 后来查了查,只需设一个常量,左括号 +1,右括号 -1,闭合的话为0,没闭合的话不为0, 出现<0即为顺 ...
- [vue]webpack中使用组件
https://blog.csdn.net/ywl570717586/article/details/79984909 vue.js中全局组件 全局组件的定义 <!DOCTYPE html> ...
- Tf中的NCE-loss实现学习【转载】
转自:http://www.jianshu.com/p/fab82fa53e16 1.tf中的nce_loss的API def nce_loss(weights, biases, inputs, la ...
- 【Python】-NO.96.Note.2.Python -【Python 基础】
1.0.0 Summary Tittle:[Python]-NO.95.Note.1.Python -[Python 老男孩 基础]- Style:Python Series:Python Since ...
- git push 报错:you are not allowed to upload merges
git rebase Cannot rebase: You have unstaged changes. git stash # 每次 push 前 git pull --rebase git pus ...
- js--script和link中的 integrity 属性
<link crossorigin="anonymous" integrity="sha256-+hDz/gVbhp24mhOmoIT4Du4F3K5fs9fjjo ...
- 安装python sklearn经验总结
1. 需要安装 numpy, scipy, 和sklearn和ipython,Cython sklearn,ipython, Cython都可以通过pip来安装.但scipy,可能还有numpy必须通 ...
- Go win32
先说的让人兴奋的吧,“GO的库开发在windwos上尽然是一摸一样的啊” C:\go-pro\go-self-package>go build gin-main.go 2017/09/20 14 ...