- 浏览: 333339 次
- 性别:
- 来自: 北京
-
最新评论
-
di1984HIT:
谢谢,写的不错。
使用hector操作Cassandra -
mr_von:
非常感谢!
paoding的分词使用 -
howgoo:
http://www.dhtmlx.com/docs/prod ...
dhtmlxGrid分页与排序 -
青春的、脚步:
谢谢
spring-data-mongodb的MongoTemplate 使用小例子 -
青春的、脚步:
xiaofancn 写道青春的、脚步 写道这个能查询都个值在某 ...
spring-data-mongodb的MongoTemplate 使用小例子
文章列表
vi filename :打开或新建文件,并将光标置于第一行首
vi +n filename :打开文件,并将光标置于第n行首
vi + filename :打开文件,并将光标置于最后一行首
vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处
vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename
vi filename....filename :打开多个文件,依次进行编辑
移动光标类命令[/b]
h :光标左移一个字符
l :光标右移一个字符
space:光标右 ...
转载 http://blog.csdn.net/SuperBoo/archive/2009/11/20/4839761.aspx
最近使用JQuery来编写前端js脚本,涉及到依据下拉框的值确定其他下拉框中数据项。需要实现对下拉框中候选项的添加删除等,使用js写的话简直会死人的。还好使用JQuery。以下是操作 下拉列表的常用功能:
1.获取列表项中候选项的数目。
2.获得选中项的索引值。
3.获得当前选中项的值
4.设定选择值
5.设定选择项
// 得到select项的个数
jQuery.fn.size = function() {
return ...
看看我们的Json数据格式
[
{id:01,name:"小白",old:29,sex:"男"},
{id:02,name:"小蓝",old:29,sex:"男"},
{id:03,name:"小雅",old:29,sex:"男"}
]
为了消除乱码问题,我们设置一个过滤器(代码片段)
...
web.xml配置请参考
http://xiaofancn.iteye.com/admin/blogs/986469
applicationContext.xml(我放在了WEB-INF目录下了)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSche ...
具体参考xhEditor
手册和压缩包中demo08.html几种示例
下载xhEditor,主要是让文件夹xheditor_emot、xheditor_plugins、xheditor_skin和文件xheditor-zh-cn.min.js保持在同一个目录中。我都放在了xheditor文件夹中
html
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xhEditor d ...
html代码
<html>
<head>
<title>Jquery的编辑表格实例</title>
<link type="text/css" rel="stylesheet" href="css/edit.css">
<script type="text/javascript" src="jslib/jquery.js"></script>
<script t ...
首先下载下来flowplayer这个播放器,将播放器面板flowplayer-3.1.5.swf复制到flv文件夹
html代码
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jslib/flowplayer-3.1.4.min.js"></script> ...
xml.jsp代码
<%@ page contentType="text/xml;charset=UTF-8" language="java" %>
<words>
<word>1</word>
<word>12</word>
<word>123</word>
<word>1234</word>
<word>123456</word>
<w ...
配置文件
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee h ...
我下载了一个配置好的web实例。
http://cdnetworks-kr-1.dl.sourceforge.net/project/fckeditor/FCKeditor.Java/2.6/fckeditor-java-demo-2.6.war
主要是lib,fckeditor文件夹和web.xml参考
1、lib中的jar包添加到自己项目的lib中,注意commons-fileupload-1.2.1.jar,commons-io-1.3.2.jar在struts2已经加入,所以就不用导入项目中的lib目录了。
2、fckeditor文件夹复制到自己的项目的Web ...
uid
1
username
honker
password
123456789
sex
女
编辑 删除 新建
1
2
3
4
这是执行效果
//编辑和新建按钮公用的处理函数
protected void DetailsVie2_ModeChanging(object sender, DetailsViewModeEventArgs e)
{
if (e.NewMode == DetailsViewMode.Edit)
De ...
1、自定义超链接字段
<asp:HyperLinkField Text="详细..."
datatextformatstring="{0:c}"
datanavigateurlfields="uid"
datanavigateurlformatstring="~\details.aspx?uid={0}"
target="_blank" />
或者绑定到显示 ...
1.下载组件:(要下载FCKeditor
_2
.
6
.
6
.zip和FCKeditor.NET_2.6.3
_2.6.3.zip
的2个zip包)
说明:
FCKeditor2.
6
.
6
.zip是其最新的文件和图片
等等
;
FCKeditor.NET_2.6.3
_2.6.3
.zip是ASP.NET调用的DLL。
2.分别解压后把F ...
通过vs的页面设置把页面的功能设置出来,(分页功能需要数据源的类型为IEnumerable),然后把数据源删除,该成手工精确赋值。
大致有编辑,删除,取消,插入。
通过vs生成事件代码
//更新事件代码
protected void ListView1_ItemUpdating(object sender, ListViewUpdateEventArgs e)
{//主要是获取页面对应的控件,再获取数据
Label uidLabel1 = (Label)ListView1.Items[e.ItemIndex].FindControl ...
此控件满适合企业产品展示类型的站点。
设置页面数据源时的代码,通常其表现出所有的功能。
<asp:DataList ID="DataList1" runat="server" DataKeyField="uid" DataSourceID="SqlDataSource1"
>
<EditItemStyle Font-Bold="False" Font-Italic="False" Font-O ...