js mudules.js
var InsertRow={
isMoveRow:false, // 是否存在动态移动行
curSelRowIndex:"", // 当前选中行序号
prevSelRowIndex:undefined, // 上次选中行序号
postData : {}, // 需要传送的参数
colNames : [], // 需要解析的字段
}; $("#CustomAlert").length == //判断有没有这个元素 var CustomAlert="<div class='modal' id='CustomAlert' style='display:block;'> "
$(document.body).append(CustomAlert); if( $(".modal-body > table > tbody > tr.msg > td").height > ) $(".modal-body > table > tbody > tr.msg > td").css({"text-align":"left"}); $("#CustomAlert .btn-default").show(); //显示出来
$("#CustomAlert .btn-ensure").width('70%');
$("#CustomAlert #title").text(title); moveToCenter("dialog");
function moveToCenter(divID) //形参和实参同类型同值
{
var left=(document.documentElement.clientWidth-$("#"+divID).width())/;
} /*=================================
函数功能: 关闭自定义提示框
=================================*/
function CloseAlert()
{
if( $("#CustomAlert").length > ){
$("#CustomAlert").remove(); remove()方法不会把匹配的元素从jQuery对象中删除,因而可以在将来再使用这些匹配的元素,不过除了这个元素本身得以保留之外,其他的比如绑定的事件,附加的数据等都会被移除。
}
} document.location.href.indexOf("ptjy_login.html") > var postData={};
postData.rzfs = JSON.parse( getLocalData('ActiveRZRQUser') )["head"]["rzfs"]; $("#TimeOut #jymm").val().length == $("#refresh-page").css("display") == "block" $("#refresh-page").hide(); $("#volume").attr({"placeholder":"请输入买卖数量"}); JSON.parse(getLocalData("ActivePTJYUser"))["head"].khbz; var multiAccount={};
multiAccount=JSON.parse(getLocalData("ptjyAccount"));
var len=multiAccount.length;
for(var i=; i<len; i++){
if( trim(multiAccount[i]["head"].khbz) == trim(khbz) )
handleUserNameOverFlow( multiAccount[i]["body"]["dlxx"][].khxm,multiAccount[i]["head"].khbz );
} $("#multi-user img").attr({"src":"../../../images/btn_switch_user.svg"}); //=======清空之前的残留数据========
$("#multi-user tbody").html("");
$("#multi-user tbody").append("<tr><td>没有登录用户</td></tr>");
$("#multi-user tbody tr td").css({"text-align":"center"});
$("#multi-user tbody tr td").css({"text-align":"center"}); $(".dropdown .dropdown-menu").html("");
$(".dropdown .dropdown-menu").html("<li class=''>没有登录用户</li>"); if( $(".khxm").hasClass("overflow") == false ){
$(".khxm").addClass("overflow");
} ajaxPost("/ptyw/zjcx",{hbdm:""},function(response){}) $("body").on("click","#multi-user tr td.del",function(){}) 委托 $(this).parent().find("td").eq().text();
$(".item").eq().find(".zzc").text(); //json定义函数
var ss_login = {ptjy : function(method){},rzrq : function(method){},ptjyOrRzrq: function(){}}
ss_login.ptjy(ss_login.rzrq); //调用
ss_login.ptjy(); var ptjy = JSON.parse(getLocalData("PTJY_LOGIN_ACCOUNT")||"[]");
ptjy.push({"khh": khh, "data": obj}); //json追加 JSON.parse(getLocalData("ActivePTJYUser") || "{}") $("body").append("<div class='mask automaticLogon'></div>"); var accountType = {
"C": "客户号",
"Z": "资金账号",
"": "沪A股东号",
"": "沪B股东号",
"": "深A股东号",
"": "深B股东号"
};
$("#khbslx").val(accountType[account.head.khbzlx]); //返回函数,则可以调用该对象的函数
var REDIRECT = (function(window) {
function init() {
setLocalData("JUMP_PARAMS", jumpParams);
}
function redirect() {
return false;
}
if (!VERSION_FUNCTION_USE.isRedirect()) {
return {
init: function() {},
redirect: function() { return false; }
}
}
return {
init: init,
redirect: redirect
}
})(window);
REDIRECT.redirect(); document.addEventListener("touchstart", function(){
ResetTimeOutCounter();
}, false); document.addEventListener("mousemove", function(){
ResetTimeOutCounter();
}, false); var _url = window.location.href;
document.write ("<script src=" + _url + "><" + '/' + "script>"); //动态加入js文件 $(window).load(function(){
FastClick.attach(document.body);
}); document.title.trim() == '普通交易' function DynInsertRow(TableID,obj,content){
InsertRow.curSelRowIndex=$(obj).index(); //obj实参是this
if( $("#"+TableID+" tbody tr.moveRow").length > ){ //判断元素是否存在
$("#"+TableID+" tbody tr.moveRow").remove();
}
}
$(this).parent().remove(); $(obj).after(content);//在被选元素后插入指定的内容,$(this).after("<p>Hello world!</p>");
$("p").after("<p>Hello world!</p>"); $("body").on("click", "#multi-user tr", function() {
if ($(this).children("td:last-child").hasClass("active") == false) //tr下面的最后一个td
} Account[i]["body"]["dlxx"][].khdm == khdm
js mudules.js的更多相关文章
- Angularjs在控制器(controller.js)的js代码中使用过滤器($filter)格式化日期/时间实例
Angularjs内置的过滤器(filter)为我们的数据信息格式化提供了比较强大的功能,比如:格式化时间,日期.格式化数字精度.语言本地化.格式化货币等等.但这些过滤器一般都是在VIEW中使用的,比 ...
- 什么是js和js的基本语法
时间:2016年12月15日 先讲讲基础语法: 大部分是来操作表单: js动态效果和数据交互(ajax?) js也有自己的API js大部分的DOM操作都是针对input的. 案例学习,对注册页面的简 ...
- 在Sublime Text 3 中安装SublimeLinter,Node.js进行JS&CSS代码校验
转载自:http://www.wiibil.com/website/sublimelinter-jshint-csslint.html 在Sublime Text中安装SublimeLinter,No ...
- Angular.JS + Require.JS + angular-async-loader 来实现异步加载 angular 模块
传统的 angular 应用不支持异步加载模块,必须在 module 启动的时候,所有模块必须预加载进来. 通过使用 angular-async-loader 库,我们可以使用 requirejs 等 ...
- JS后退, JS返回上一页, JS返回下一页
Javascript 返回上一页: 1. history.go(-1), 返回两个页面: history.go(-2); 2. history.back(). 3. window.history.fo ...
- 比較Backbone.js, Angular.js, Ember.js, Knockout.js 心得
還記得第一次寫網站的時候,我無意間寫成了 SPA(single page application),當時還沒有SPA這個詞,後來因為廣告主需要不同 url location 頁面的廣告展示,只好把部分 ...
- 解决IE5、IE6、IE7与W3C标准的冲突,使用(IE7.js IE8.js)兼容
如果分别用IE5.IE6.IE7浏览同一个网页,将可能出现不一样的效果. 这是它们之间对CSS的解析选择器不一样或错误和个别bug所导致.为了解决这些错误和bug. 我们不得不找到一个能平衡于它们之间 ...
- js优化 ----js的有序加载
说到有序加载,我们先来说说js的无序加载: <script src="jquery/jquery-1.4.1.js" type="text/javascript&q ...
- 原生JS+tween.js模仿微博发布效果
转载请注明出处:http://www.cnblogs.com/zhangmingze/p/4816865.html 1.先看效果吧,有效果才有动力: 2.html结构: <!DOCTYPE ht ...
随机推荐
- C# DispatcherTimer Start之后立即执行
如果DispatherTimer 的Interval 不是在实例化时赋值,那么Start之后,Tick方法会立即执行一次. DispatcherTimer timer = new Dispatcher ...
- gridview in webform
How to: Enable Default Paging in the GridView Web Server Control https://msdn.microsoft.com/en-us/li ...
- 【POJ 2352】 Stars
[题目链接] http://poj.org/problem?id=2352 [算法] 树状数组 注意x坐标为0的情况 [代码] #include <algorithm> #include ...
- [MySQL] 查询一段时间记录
24小时内记录(即86400秒) $sql="SELECT video_id,count(id)as n FROM `rec_down` WHERE UNIX_TIMESTAMP(NOW() ...
- ROS-动态参数
前言:在节点外部改变参数的方式有:参数服务器.服务.主题以及动态参数. 1.新建cfg文件 在chapter2_tutorials包下新建cfg文件夹,在cfg文件夹下新建chapter2.cfg文件 ...
- Java算法——数组
* 已知一个数组int[98],该数组里面存储了0~99共100个数字中的98个,数字不重复,请用算法算出0~99中缺少的2个数字是哪两个? * 要求:数组自己用程序生成,数值介于0~99,相互之间不 ...
- Qwiklab'实验-DynamoDB, Redshift, Elasticsearch'
title: AWS之Qwiklab subtitle: 4. Qwiklab'实验-Amazon DynamoDB, Amazon Redshift, Elasticsearch Service' ...
- Python——wordcloud
import jiebafrom wordcloud import WordCloud,STOPWORDSimport matplotlib.pyplot as pltfrom scipy.misc ...
- 多进程Socket_Server
import socketserverclass MyServer(socketserver.BaseRequestHandler): def handle(self): #继承BaseRequest ...
- Airtest ——poco
1. Pymysql(No module named ‘cryptography’) pip install cryptography pip install paramiko 把 cryptogr ...