摘要:
网站的js文件,要面对的第一函数通常是匿名自执行函数,形如(function(){})(),它的作用有两个,一是匿名,在java中有匿名内部类,作用类似。匿名的意思是没有声名函数的名字,这样就使得函数外部无法访问匿名自执行函数的内部,防止函数之间变量命名的相互干扰,比如说有两个人写了两个js,放在同 阅读全文
摘要:
(function (namespace) { var KEAPIHelper = function () { var self = this; //Post方式获取数据,默认使用同步的方式,Isasync=true为异步方式 self.PostMeaasge = function (ActionU 阅读全文
摘要:
//引入jQuery.js <script> var select = function(){ return window.getSelection ? window.getSelection().toString() : document.selection.createRange(); }; / 阅读全文
摘要:
//先按照data中的PID排序 for (var j = 0; j < data.length - 1; j++) { var a = data[j]; var b = data[j + 1]; //按照SAGE排序↑ data = data.sort( function (a, b) { if 阅读全文
摘要:
https://blog.csdn.net/J080624/article/details/54972750 阅读全文
摘要:
<script> var getPercent = function () { var percent = '25%'; if (window.innerWidth < 1280) { percent = '24.9%'; } else if (window.innerWidth <= 1440) 阅读全文
摘要:
<!--向上弹起的弹框--> <div class="btn-group dropup"> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button">按钮下拉菜单<span class=" 阅读全文
摘要:
HTML部分 <div style="position:relative;text-align: center;min-height: 150px;"> <select id="sel_Diagnosis"style="width: 360px;height: 40px;" onchange="do 阅读全文
摘要:
.input-group-btn-vertical { .input-group-btn-vertical { position: relative; white-space: nowrap; width: 1%; vertical-align: middle; display: table-cel 阅读全文