播放背景音乐cc.audioEngine.playMusic(url,loop);@param{String}url声音路径@param{Boolean}loop是否循环播放停止背景音乐cc.audioEngine.stopMusic(releaseData);*@param{Boolean}rel...
分类:
Web程序 时间:
2015-02-02 22:52:14
阅读次数:
6145
一、普通组件映射配置 1、创建组件类,代码如下: package learn.hibernate.bean; /** * 组件类 */
public class Phones { private String companyPhone; private String homePhone; priva...
分类:
Web程序 时间:
2015-02-02 21:25:15
阅读次数:
232
原题地址辅助栈代码: 1 bool isValid(string s) { 2 stack st; 3 4 for (auto c : s) { 5 if (st.empty()) 6 st.p...
分类:
其他好文 时间:
2015-02-02 21:21:59
阅读次数:
120
使用的方式为,读取TXT记事本的内容,然后写入创建的PDF文件。 static void Main(string[] args) { const string txtFile = "D:\\1.txt"; const strin...
分类:
其他好文 时间:
2015-02-02 21:17:37
阅读次数:
197
在网上看到java居然支持中文变量名、方法。这里我只试了变量名和方法,类名这些没有试...。真是给力 1 package com.gxf.fun; 2 3 4 public class TestForChinese { 5 private String 字符串 = "字符串"; 6 ...
分类:
编程语言 时间:
2015-02-02 21:12:33
阅读次数:
168
一、单个对象生成xml生成以下xml,该怎么生成呢? 1 123456 传说之美 2015-02-02 11:50:42先定义一个account类,属性有id、name、password、createDate。public class Account { private String ...
分类:
移动开发 时间:
2015-02-02 19:50:25
阅读次数:
116
string myScript = "function ShowPanel() { $('.nav a[href=\"#" + PanelType.wenben.ToString() + "\"]').tab('show'); }"; ScriptManager.Re...
分类:
Web程序 时间:
2015-02-02 19:49:34
阅读次数:
165
原题地址注意从1开始索引,所以记得+1代码: 1 int titleToNumber(string s) { 2 int res = 0; 3 4 for (int i = 0; i < s.length(); i++) { 5 ...
分类:
其他好文 时间:
2015-02-02 19:42:12
阅读次数:
145
原题地址26进制数注意,编号是从1开始的,所以取模取商之前要-1代码: 1 string convertToTitle(int n) { 2 string res; 3 4 while (n) { 5 res = (char)...
分类:
其他好文 时间:
2015-02-02 19:38:27
阅读次数:
145
一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.Sub...