- 浏览: 19924 次
- 性别:
- 来自: 濮阳
最新评论
文章列表
package com.alipay.config;
import java.math.BigInteger;
import java.util.Date;
import java.util.Random;
import java.util.zip.CRC32;
public class keygen {
private static final int version=14;
/**
* @param s
* @param i
* @param bytes
* @return
*/ ...
var mainWin = document.getElementById("personalModu").contentWindow;
var NTS = mainWin.document.getElementById("ntSubName").innerHTML;
/*全选*/ function AllCheck() { $("#allcheck").click(function () { $('input[name="qunfa"]').attr("checked", this ...
select count(*) from NetTeacherStudent as nts where exists(select id from NetTeacher as nt where nt.user.username='"+username+"' and nts.teacher.id=nt.id)
//根据导师查询学生下拉框信息(combogrid)
function loadNetTeacher(){
$('#cg').combogrid({
panelWidth: 480,
panelHeight:310,
idField:'id',
textField:'user',
url:'netTeacher.do?action=listAllNT',
fitColumns: true,
striped: true,
editable: true,
pagination: true, ...
var inDisGrade=document.getElementsByName("gInDisplayEdit");
for(var i=0;i<inDisGrade.length;i++)
{
if(inDisGrade[i].value==inDisplay)
{
inDisGrade[i].checked=true;
}
}
$(function load() {
$.ajax({
type : "post",
async : false,
dataType : "json",
url : "userMethod.do?action=getClassAndCourseList",
success : function(json) {
$.each(json, function(row, obj) {
$("#cid").append("<option value='"+obj.class ...
写道
需要导入jxl.jar 包
public class GenExcel {
public void createExcel(OutputStream os) throws WriteException,IOException{
//创建工作薄
WritableWorkbook workbook = Workbook.createWorkbook(os);
//创建新的一页
WritableSheet sheet = workbook.createSheet("First Sheet", 0);
//创建要显示的内容 ...
// JavaScript Document
//设置禁用或启用按钮
function is_disabled(id, is_disable) {
/*
id:对象id
is_disable:true启用;false:禁用
is_disable参数如果不传默认为true
author:xw
date:2009-4-13
*/
var img_display = '';
if (arguments.length == 1) {
is_disable = true;
}
if(typeof($("#"+id+&qu ...
css控制只显示部分文字,防止表格撑开
- 博客分类:
- web
css控制只显示部分文字,防止表格撑开
##利用css+div控制只显示部分文字,效果是: 哈哈你好...
<div
style="text-overflow: ellipsis; overflow: hidden; white-space: nowrap; margin-left: 15px; width: 100px">
${myList.tNotice.noticeTitle}
</div>
window.onload=function(){
toTab();
}
function getByClass(oParent,sClass)
{
var aEle=oParent.getElementsByTagName('*');
var aResult=[];
for(var i=0;i<aEle.length;i++)
{
if(aEle[i].className==sClass)
{
aResult.push(aEle[i]);
}
...
NodeJs是一个服务端运行javascript的平台,跟asp.net,java,python,ruby,php一样,把javascript的定位从前端给移到了后端, 以Google V8为javascript引擎,所以javascript执行效率相当高,跟一般的web后台开发语言不一样,NodeJS的特点是异步,无阻 ...
function getRootPath(){ //获取当前网址,如: http://localhost:8080/CSchool/index.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如:CSchool/index.jsp var pathName=window.document.location.pathname; var pos=curWwwPath.indexOf(pathName); //获取主机地址,如: http://localhost:8080 va ...
select * from tbInformation as i where exists(select it.id from tbInfoType as it where it.schoolID=247 and it.id = i.typeID) and scope like '%老师%' and typeID = 10017
function pinfolists() {
$(document).ready(
function() {
var typeID = document.getElementById("reinfoID").value;
var title = document.getElementById("title").value;
var stime = $('#sTime').datebox('getValue');
var etime = $('#eTime').datebox('getValue');
if (typeID == 0) { ...
//格式化日期
function dateFormat(x, y) {
var z = {
M : x.getMonth() + 1,
d : x.getDate(),
h : x.getHours(),
m : x.getMinutes(),
s : x.getSeconds()
};
y = y.replace(/(M+|d+|h+|m+|s+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
...