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的更多相关文章

  1. Angularjs在控制器(controller.js)的js代码中使用过滤器($filter)格式化日期/时间实例

    Angularjs内置的过滤器(filter)为我们的数据信息格式化提供了比较强大的功能,比如:格式化时间,日期.格式化数字精度.语言本地化.格式化货币等等.但这些过滤器一般都是在VIEW中使用的,比 ...

  2. 什么是js和js的基本语法

    时间:2016年12月15日 先讲讲基础语法: 大部分是来操作表单: js动态效果和数据交互(ajax?) js也有自己的API js大部分的DOM操作都是针对input的. 案例学习,对注册页面的简 ...

  3. 在Sublime Text 3 中安装SublimeLinter,Node.js进行JS&CSS代码校验

    转载自:http://www.wiibil.com/website/sublimelinter-jshint-csslint.html 在Sublime Text中安装SublimeLinter,No ...

  4. Angular.JS + Require.JS + angular-async-loader 来实现异步加载 angular 模块

    传统的 angular 应用不支持异步加载模块,必须在 module 启动的时候,所有模块必须预加载进来. 通过使用 angular-async-loader 库,我们可以使用 requirejs 等 ...

  5. JS后退, JS返回上一页, JS返回下一页

    Javascript 返回上一页: 1. history.go(-1), 返回两个页面: history.go(-2); 2. history.back(). 3. window.history.fo ...

  6. 比較Backbone.js, Angular.js, Ember.js, Knockout.js 心得

    還記得第一次寫網站的時候,我無意間寫成了 SPA(single page application),當時還沒有SPA這個詞,後來因為廣告主需要不同 url location 頁面的廣告展示,只好把部分 ...

  7. 解决IE5、IE6、IE7与W3C标准的冲突,使用(IE7.js IE8.js)兼容

    如果分别用IE5.IE6.IE7浏览同一个网页,将可能出现不一样的效果. 这是它们之间对CSS的解析选择器不一样或错误和个别bug所导致.为了解决这些错误和bug. 我们不得不找到一个能平衡于它们之间 ...

  8. js优化 ----js的有序加载

    说到有序加载,我们先来说说js的无序加载: <script src="jquery/jquery-1.4.1.js" type="text/javascript&q ...

  9. 原生JS+tween.js模仿微博发布效果

    转载请注明出处:http://www.cnblogs.com/zhangmingze/p/4816865.html 1.先看效果吧,有效果才有动力: 2.html结构: <!DOCTYPE ht ...

随机推荐

  1. 0x3A 博弈论之SG函数

    博弈即玄学啊 (除了nim和二分图博弈什么都不会 算是学了下SG函数吧 这个东西是针对有向图游戏的,相当于把一个局面看作一个点,到达下个局面相当于建一条边 必胜态SG值为0 那么对于一个点,他的SG值 ...

  2. 0x06 倍增

    这东西太玄学了我真是不太会... 对于这道例题,很容易看出最大值必然是最大减最小,次大减次小…… 常规的贪心思想,分的个数一样,总长度越大越好.其实我的第一想法是二分右端点..但是只有40,至今没有搞 ...

  3. DNS反射放大攻击分析——DNS反射放大攻击主要是利用DNS回复包比请求包大的特点,放大流量,伪造请求包的源IP地址为受害者IP,将应答包的流量引入受害的服务器

    DNS反射放大攻击分析 摘自:http://www.shaojike.com/2016/08/19/DNS%E6%94%BE%E5%A4%A7%E6%94%BB%E5%87%BB%E7%AE%80%E ...

  4. Python—使用xml.sax解析xml文件

    什么是sax? SAX是一种基于事件驱动的API. 利用SAX解析XML文档牵涉到两个部分:解析器和事件处理器. 解析器负责读取XML文档,并向事件处理器发送事件,如元素开始跟元素结束事件; 而事件处 ...

  5. sql语句获取本周、本月、本年数据

    本周:select * from table where datediff(week,C_CALLTIME,getdate())=0     --C_CALLTIME 为日期字段本月:select * ...

  6. CLR - 设计类型

    前言 好记性不如烂“笔头”系列... 目录 类型基础 基元类型.引用类型和值类型 类型与成员 常量与字段 方法 类型基础 “运行时”要求每个类型最终都从System.Object 类型派生. 由于所有 ...

  7. uva 11624 Fire! 【 BFS 】

    按白书上说的,先用一次bfs,求出每个点起火的时间 再bfs一次求出是否能够走出迷宫 #include<cstdio> #include<cstring> #include&l ...

  8. offscreen-render

    offscreen-render 什么是offscreen-render?offscreen-render涉及的内容比较多,有offscreen-render那就有onscreen render,on ...

  9. vue调试工具vue-devtools的安装

    一.可以在chrome商店中下载安装,当然需要FQ哈,你懂得~: 二.手动安装: 1.将github上项目文件克隆到本地,https://github.com/vuejs/vue-devtools: ...

  10. thinkphp queue

    composer create-project topthink/think composer require topthink/think-queue php think queue:work -- ...