10 2012 档案
asp.net页面刷新后样式就发生了改变
摘要:using System;using System.Collections.Generic;using System.Text;using System.Web;using System.Web.UI;/// <summary>/// 一些常用的Js调用/// 添加新版说明:由于旧版普遍采用Response.Write(string msg)的方式输出js脚本,这种/// 方式输出的js脚本会在html元素的<html></html>标签之外,破坏了整个xhtml的结构,/// 而新版本则采用ClientScript.RegisterStartupScrip
阅读全文
System::String^ / std::string / char * 间的转换(部分)
摘要:System::String^ to std::string void MarshalString ( System::String^ s, std::string& os ) { using namespace System::Runtime::InteropServices; const char* chars = (const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer(); os = chars; Marshal::FreeHGloba...
阅读全文
[摘]C/C++实现js的split函数功能
摘要:今天在网上找了一下,发觉有比较多的方法,现在列出来,需要的朋友可以参考一下。功能最丰富的就是第一种方法了:1 vector<string> Split(const string& s,const string& match,bool removeEmpty=false,bool fullMatch=false) 2 //参数s为需要肢解的字符串 3 //参数match为肢解匹配字符串 4 //参数removeEmpty为是否删除空字符 5 //参数fullMatch为是否只保留全匹配的字符串 6 7 下面为代码区: 8 #include <string>
阅读全文
char*与System::String^的相互转换
摘要:#include "stdafx.h" using namespace System; //这个命名空间如果缺的话,IntPtr这个无法识别int main(array<System::String ^> ^args) { char* ch1 = "this is chars "; //将char*转换为System::String^ String^ str1= System::Runtime::InteropServices::Marshal::PtrToStringAnsi((IntPtr)ch1); //System::String^转
阅读全文
浙公网安备 33010602011771号