|
梦 |
|
|
|
|
请问,JavaScript中Function 与function有什么区别,各自的用法又是怎样的,麻烦举例讲解下,非常感谢!
2009-1-6 11:35:02
|
| 阿良 |
|
Re:2009-1-6 12:55:48
这里说得比较清楚了
http://www.yesky.com/imagesnew/software/javascript/html/jsobjFunction.htm
|
|
|
魏然 |
|
|
|
|
这几天为什么五笔字典无法查询?我在学五笔,以前那个字典很好用的,不知道这两天总是无法查询?能帮忙好吗,谢谢了!
2009-1-4 11:49:58
|
| 阿良 |
|
Re:2009-1-4 14:46:21
不好意思,升级时忘记更新一个文件。现在试试看怎样。谢谢你的反馈!
|
|
狼 |
|
|
|
|
呵呵 ,谢谢阿良啊,已经实现了,我把一个属性给搞错了
2009-1-3 23:23:17
|
| 阿良 |
|
Re:2009-1-4 7:45:45
好的
|
|
|
狼 |
|
|
请问一下 c#中怎么用StreamReader读出的数据自动换行排列到ListV |
#4
|
|
|
|
请问一下 c#中怎么用StreamReader读出的数据自动换行排列到ListView中
2009-1-3 2:51:59
|
| 阿良 |
|
Re:2009-1-3 8:39:08
<asp:Repeater ID="MyRepeater" runat="server">
<ItemTemplate>
<%# Container.DataItem %><br />
</ItemTemplate>
</asp:Repeater>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string fileName = MapPath("Test.txt");
BindData(MyRepeater, fileName);
}
}
//ListView好像是ASP.NET3.5的控件,我这里没有ListView控件,我用Repeater演示。不知道行不行。
//你将这个方法参数类型改一下为ListView看看能不能运行
private void BindData(Repeater repeater, string fileName)
{
string[] lines = GetLinesFromFile(fileName);
repeater.DataSource = lines;
repeater.DataBind();
}
/// <summary>
/// 从文本文件中返回所有的行数组
/// </summary>
/// <param name="fileName"></param>
/// <returns></returns>
string[] GetLinesFromFile(string fileName)
{
FileStream stream = File.OpenRead(fileName);
StreamReader reader = new StreamReader(stream, Encoding.GetEncoding("gb2312"));
List<string> list = new List<string>();
string line;
while ((line = reader.ReadLine()) != null)
{
list.Add(line);
}
reader.Close();
stream.Close();
return list.ToArray();
}
|
|
小谭 |
|
|
良老师好!请问怎样用C#写一个像QQ那样的用鼠标控制窗体的显示与隐藏? |
#5
|
|
|
|
如题
2009-1-2 21:16:01
|
| 阿良 |
|
Re:2009-1-3 8:50:59
是不是这个思路:做一个类似于QQ的浮动窗体
http://www.cnblogs.com/leeon/archive/2005/04/20/141322.html
或者看看这个实现:C#窗体贴边自动隐藏组件 By Red_angelX
http://www.chenjiliang.com/Article/View.aspx?ArticleID=2471
|