用alert但是页面不出结果
  1. ![图片说明](https://img-ask.csdn.net/upload/201803/29/1522292557_551790.png)图片说明

7个回答

form只有serialize()没有serializeJSON()

mrxiaoliang123
3397 是的 但是不是可以 .js就可以了
一年多之前 回复

图片说明

实在想不通哪不行,就一步一alert

mrxiaoliang123
3397 主要是Uncaught TypeError: $(...).serializeJSON is not a function错误 是不是序列化这个没有
一年多之前 回复

可以在控制台打印下,然后F12查看source

mrxiaoliang123
3397 控制台报Uncaught TypeError: $(...).serializeJSON is not a function
一年多之前 回复

你的alert()没用对吧。 alert(message).

mrxiaoliang123
3397 我刚又简化了些 但是还是保存 是不是序列化包错了
一年多之前 回复

你是不是没引用对Jquery哟

mrxiaoliang123
3397 <script type="../../js/jquery.serializejson.min.js" type="text/javascript"></script> 有了
一年多之前 回复

直接$("#standardFrom").serialize()搞定.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
alert的结果!
function b(x, y, a) rnarguments[2] = 10;rnalert(a);rnrnb(1, 2, 3);rn如果函数体改成下面,结果又会是什么?rna = 10;alert(arguments[2] );
程序没错,但是运行不出结果
rnPrivate Sub Command1_Click()rnDim strSQL As StringrnDim strCon(7) As StringrnDim intCount As IntegerrnDim i As IntegerrnintCount = 0rn'获得所有得查询条件rnIf Text1.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(1) = "船型 like '%" & Text1.Text & "%'"rn Elsern strCon(1) = "船型='" & Text1.Text & "'"rn End IfrnElsern strCon(1) = ""rnEnd IfrnIf Text2.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(2) = "产品号 like '%" & Text2.Text & "%'"rn Elsern strCon(2) = "产品号='" & Text2.Text & "'"rn End IfrnElsern strCon(2) = ""rnEnd IfrnIf Text3.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(3) = "图号 like '%" & Text3.Text & "%'"rn Elsern strCon(3) = "图号='" & Text3.Text & "'"rn End IfrnElsern strCon(3) = ""rnEnd IfrnIf Text4.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(4) = "零件号 like '%" & Text4.Text & "%'"rn Elsern strCon(4) = "零件号='" & Text4.Text & "'"rn End IfrnElsern strCon(4) = ""rnEnd IfrnIf Text5.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(5) = "校管状态 like '%" & Text5.Text & "%'"rn Elsern strCon(5) = "校管状态='" & Text5.Text & "'"rn End IfrnElsern strCon(5) = ""rnEnd IfrnIf Text6.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(6) = "校管日期 like '%" & Text6.Text & "%'"rn Elsern strCon(6) = "校管日期='" & Text6.Text & "'"rn End IfrnElsern strCon(6) = ""rnEnd IfrnIf Text7.Text <> "" Thenrn If Check1.Value = 1 Thenrn strCon(7) = "校管施工人 like '%" & Text7.Text & "%'"rn Elsern strCon(7) = "校管施工人='" & Text7.Text & "'"rn End IfrnElsern strCon(7) = ""rnEnd IfrnrnIf strCon(1) = "" And strCon(2) = "" And strCon(3) = "" And strCon(4) = "" And strCon(5) = "" And strCon(6) = "" And strCon(7) = "" Thenrn strSQL = "select * from xinxi"rnElsern strSQL = "select * from xinxi where "rn For i = 1 To 7rn If strCon(i) <> "" Thenrn intCount = intCount + 1rn If intCount = 1 Thenrn strSQL = strSQL + strCon(i)rn Elsern strSQL = strSQL + " and " + strCon(i)rn End Ifrn End Ifrn NextrnEnd IfrnAdodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"rnAdodc1.CursorLocation = adUseClientrnAdodc1.CommandType = adCmdTextrnAdodc1.RecordSource = strSQLrnAdodc1.RefreshrnEnd SubrnPrivate Sub Command2_Click()rnUnload MernEnd SubrnrnPrivate Sub Form_Load()rn Dim db As New ADODB.Connectionrn Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb;Persist Security Info=False"rn db.ConnectionString = Adodc1.ConnectionStringrn If db.State <> ADODB.ObjectStateEnum.adStateClosed Then db.Closern db.Openrn rnEnd Subrn程序如上所示,麻烦大家看下什么问题。结果不能再DATAGIRD中显示出来。rnrn查询的条件是7个文本框。。。
mybatis有符合条件的结果但是查询不出
mybatis有符合条件的结果但是查询不出
不出结果
Dim conn As New Data.OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=" + Server.MapPath("xitong.mdb"))rn conn.Open()rn Dim cmd3 As New Data.OleDb.OleDbCommand("select * from [score] where ID='" & Trim(Label2.Text) & "'and username='" & Trim(Label1.Text) & "' and score='尚未考试'", conn)rn Dim rd3 As Data.OleDb.OleDbDataReaderrn rd3 = cmd3.ExecuteReaderrn If rd3.Read() Thenrn Response.Write(" ")rn Elsern Dim cmd2 As New Data.OleDb.OleDbCommand("select score from [score] where ID='" & Trim(Label2.Text) & "'and username='" & Trim(Label1.Text) & "' and score<>'尚未考试'", conn)rn Dim rd2 As Data.OleDb.OleDbDataReaderrn rd2 = cmd2.ExecuteReaderrn If rd2.Read() Thenrn Dim pass As Stringrn pass = rd2("score").ToString()rn Response.Write(" ")rn End Ifrnrn End Ifrn怎么不查不出成绩?
用层替代alert提示操作结果
做一些一般网页的时候,都是用alert提示用户操作是否成功,但不美观,想用一个层来实现(像新浪爱问知识人),就是操作成功后出现一个层,让其置顶,层以外的地方不能点击rn怎么写呢rnrn多多指教
alert()影响结果的疑问
rn这段代码是我用dhtmlxtree构建一棵树rnrn最后一句是改变一个节点的链接 奇怪的是前面如果没有alert后面的set方法就不会成功加上一个alert随便弹出什么后面的set就成功了 很是费解n[b]问题补充:[/b]n哦 明白了 原来如此 那怎么改合理 JS不会rn2楼说的setOnClickHandler怎么用?
alert(5.31-1.31),结果是多少?
谁有解决办法?rn在vbs中就没有这个问题
vs2005+access用like语句不出结果。
小弟遇到如下情况:用oledb连接 access数据库。sql语句是带有like的,在access里面执行是可以查到正确结果的,但是在vs2005中用OleDbDataAdapter填充一个dataset时总是空表。rn单步的时候就停在Fill()方法之前那句话上然后把传到command里的语句拷出来放在access里直接执行,结果是对的。但是在走一步执行Fill()方法后dataset里搞死没有数据。。。rnrn如果要是不带like直接写成 = 判断就有数据了。rnrn是在是困惑了,有那位同样用oledb连接过access并且恰巧用过like语句,非常感激给个调试过的代码片段出来。
MyEclipes打印不出结果
结果一直都是 Process finished with exit code 0。原因是代码在某个地方就结束了 并没有任何的打印结果
越南语搜索不出结果
SELECT * FROM hy_info WHERE (hy_add LIKE '%Bầu cử Quốc hội Mỹ: Trước giờ G%')rnrnSELECT * FROM hy_info WHERE (hy_add = 'Bầu cử Quốc hội Mỹ: Trước giờ G')rnrn或者缩短关键词都搜索不出来,hy_add的类型是nvarchar,换过varchar也不行,页面都是utf8的,数据库是MSSQL2000,版本不记得了,应该跟这个无关吧。rnrn该怎么样写这个搜索语句才能正确显示呢?rn
mysql查询不出结果
本地模糊查询没有问题,但是,上传到服务器上面 !一个搜索的功能就不能使用了!一直找不出什么原因,郁闷啊。哪位高人帮帮我啊!我本地字符集rnVariable_name Valuerncharacter_set_client utf8rncharacter_set_connection utf8rncharacter_set_database utf8rncharacter_set_filesystem binaryrncharacter_set_results utf8rncharacter_set_server latin1rncharacter_set_system utf8rncharacter_sets_dir d:\wamp\bin\mysql\mysql5.0.51b\share\charsets\rnrn服务器上面的rnrnVariable_name Value rncharacter_set_client latin1 rncharacter_set_connection utf8 rncharacter_set_database utf8 rncharacter_set_filesystem binary rncharacter_set_results latin1 rncharacter_set_server latin1 rncharacter_set_system utf8 rncharacter_sets_dir /usr/share/mysql/charsets/ rnrn到底是什么原因啊 查询的sql语句是 rnselect * from zhaop where 1=1 and zpd like '%武汉%' order by zpp asc, id descrnrn连接数据库的时候已经指明 mysql_query("set names utf8");rn 但是最后还是查询不出来,直接用phpmyAdmin执行sql也查询不出!,本人在线等。谢谢大家帮我解决下啊rnrnrn
sql running不出结果
[code=sql]select a.customer_id, b.amount_after, b.create_timern from mcc_customer_consume a left join mcc_amount_change_record b on a.customer_id = b.customer_idrn left join mcc_customer y on a.customer_id = y.id rn where register_date between "2017-04-01 00:00:00" and "2017-05-01 00:00:00"rn and amount_after >= "500"rn and consume_status = "1"rn group by customer_idrn having create_time < min(consume_date)[/code]
Java得不出结果
小弟刚学Java编写了一段程序不知道哪错了 为什么运行结果3无法输出呢?各位大虾帮帮忙rnrnrnimport java.io.*;rnpublic class HelloWorld rnrnrn public static void main(String[] args) rn rn System.out.print("请输入阶乘的数n! = ");rnrn Scanner in = new Scanner(new BufferedInputStream(System.in));rn int n = in.nextInt(); //in.nextInt(); 就是记录你用键盘输入的值rn int j = n - 1;rn System.out.println("运行的结果为1 " + j);rn int i = n;rn System.out.println("运行的结果为2 " + i);rn for (i = n;i > 1;i --)rn rn i ++;rn j *= i;rn rn System.out.println("运行的结果为3 " + j); //为什么这句话答应不出来?rn rnrnrn
clahe(C++)不出结果
我用的clahe,但是不出结果,程序没错误,究竟是为什么呢?rnrn一下是部分代码//结合opencvrnint CLAHE (kz_pixel_t* pImage, unsigned int uiXRes, unsigned int uiYRes,rn kz_pixel_t Min, kz_pixel_t Max, unsigned int uiNrX, unsigned int uiNrY,rn unsigned int uiNrBins, float fCliplimit);rnrnint main( int argc, char** argv )rnrn IplImage* img=cvLoadImage("flower.jpg",1);rn unsigned char *pBuffer = NULL;rn pBuffer = (unsigned char *)(img->imageData);rnrn [color=#FF0000]int value= CLAHE(pBuffer,20,10,80,250,5,5,0,100.0);[/color]rn cvSetData(img, pBuffer, img->widthStep);rn cout<<"value="<
swscanf转换不出结果
我想实现一个 十六进制字符串转换为十进制数字的功能rn[code=c] int i;rn UnicodeString tokenstring = "0x77";rn swscanf(tokenstring.c_str(), L"%d", &i);rn[/code]rnrn得到的i=0;rnrn请教有什么好的方法没?swscanf 我哪里搞错了?
为什么返回不出结果?
#include rn#include rnusing namespace std;rnint fact(int n)rnrn int num=1;rn stack S;rn L:rn if(n>0)rn rn S.push(n);rn n=n-1;rn goto L;rn M:rn num *= S.top();rn rn if(!S.empty())rn rn S.pop();rn goto M;rn rn return num;rnrnrnint main()rnrn int n;rn cin>>n;rn cout<
算术表达式得不出结果,求教。
下面是一个小程序,编译后不存在语法错误。rn rn fRate = (iC/iA) * 100.00f 这一表达式的结果打印时总是 0.0。得不出正确的结果。请问,是哪里出错了?rn rn 还有就是,程序运行中,键盘输入数据时如果存在空格,空格后的数据会赋给下一个变量,这是正常现象吧?rnrnPS:如果出现未清理文件缓冲区导致的错误,请忽略。rnrn[code=C/C++]rn/* 计算篮球选手的2分球统计结果 */rnrn#include rn#include rnrnmain()rnrn char sName[20]; rn int iA, iC, iS; /* iA 为投篮次数,iC为投中次数,iS为得分 */rn float fRate; /* fRate 为命中率. */rn rn printf("Enter name:"); rn scanf("%s", sName);rn rn while (strcmp(sName, "stop") != 0) /* 球员姓名不是“stop”时,开始循环 */rn rn printf("Enter attempted: ");rn scanf(" %d", &iA);rn printf("Enter completed: ");rn scanf(" %d", &iC);rnrn iS = iC * 2; /* 计算得分 */rn fRate = (iC/iA) * 100.00f; /* 计算命中率 */rnrn printf("\n\nBasketball Two-Point Field Goal Statistics\n\n");rn printf("Player: %s\n", sName);rn printf("Points: %d\n", iS);rn printf("Percentage: %4.1f%%\n\n", fRate);rnrn printf("Enter name:");rn scanf("%s", sName);rn rnrn return 0;rnrn[/code]
3sum程序运行不出结果
import java.util.Arrays;rnpublic class ThreeSumfastrnrn rn private int sum(int[] a, int key) rn int left = 0;rn int cnt=0;rn int right = a.length - 1;rn int value = a[key];rn while (left < right) rn if (left == key || a[left] + a[right] < -value) left++;rn else if (right == key || a[left] + a[right] > -value) right--;rn else cnt++;rn rn return cnt;rn rn rn public static void main(String[] args)rn rn int[] a=6,-4,3,2,-1,8,4,0,-5,-2,-3,5,-6;rn ThreeSumfast p=new ThreeSumfast();rn Arrays.sort(a);rn System.out.println(p.sum(a,4));rn rnrn这个程序错在哪?为什么出来结果?rn万分感谢~
运行不出结果,求解
#include rn#include rn#include rn#include rnrnunsigned char *y;rnunsigned char *u;rnunsigned char *v;rnrnbool testsize(int w, int h, int s, int *pw, int *ph);rnrnint main(int argc, char *argv[])rnrn HRESULT hr;rn LPDIRECTDRAW lpDD;rn DDSURFACEDESC ddsd; //表面描述 rn LPDIRECTDRAWSURFACE lpPrimary; //主表面指针rn LPDIRECTDRAWSURFACE lpOverlay; //离屏表面指针 以上为创建yuv表面指定像素格式,并指定FourCC码rn RECT rcSrc;rn FILE *fd;rn int i, j, f;rn char fname[256];rn unsigned char *py, *pu, *pv;rn unsigned int *dst;rn int fcount, ms_per_frame;rn int width, height, size;rn int width2, height2, size2;rn int t1, t2;rn char c;rn bool done, wait;rnrn if (argc != 3 && argc != 5 && argc != 6)rn rn fprintf(stderr, "yuv_disp filename Fcount width height ms_per_frame");//fprintf功能:传送格式化输出到一个文件中,和printf区别于它是用于文件操作rn return -1;rn rn sscanf(argv[1], "%s", fname);rn printf ("the input file is %s\n",fname);rn sscanf(argv[2], "%d", &fcount);rn if (argc == 6)rn rn sscanf(argv[5], "%d", &ms_per_frame);rn rn elsern rn ms_per_frame = 33;rn rn if (argc >= 5)rn rn sscanf(argv[3], "%d", &width);rn sscanf(argv[4], "%d", &height);rn rn elsern rn struct _stat st;rn //sprintf(name, "%s\n", fname);rn if (_stat(fname, &st) != 0)rn return -1;rn size = st.st_size;rn if (!(testsize( 176, 144, size, &width, &height)rn || testsize( 352, 240, size, &width, &height)rn || testsize( 352, 480, size, &width, &height)rn || testsize( 704, 480, size, &width, &height)rn || testsize( 720, 480, size, &width, &height)rn || testsize( 352, 288, size, &width, &height)rn || testsize( 352, 576, size, &width, &height)rn || testsize( 704, 576, size, &width, &height)rn || testsize( 720, 576, size, &width, &height)rn || testsize( 8, 8, size, &width, &height)rn || testsize( 16, 16, size, &width, &height)rn || testsize( 32, 32, size, &width, &height)rn || testsize( 64, 64, size, &width, &height)rn || testsize( 128, 128, size, &width, &height)rn || testsize( 256, 256, size, &width, &height)rn || testsize( 512, 512, size, &width, &height)rn || testsize(1024,1024, size, &width, &height)))rn rn fprintf(stderr, "Nonstandard picture size: specify width and height\n");rn return -1;rn rn rn width2 = width/2;rn height2 = height;rn size = width*height;rn size2 = width2*height2;rn y = (unsigned char *)malloc(size);rn u = (unsigned char *)malloc(size2);rn v = (unsigned char *)malloc(size2);rn if (y == NULL || u == NULL || v ==NULL)rn rn fprintf(stderr, "Out of memory\n");rn return -1;rn rn hr = DirectDrawCreate(NULL, &lpDD, NULL); //通过此函数来创建DirectDraw的对象,lpDD就是创建的对象。rn if (FAILED(hr)) fprintf(stderr, "DirectDrawCreate failed\n"); return -1; rn hr = lpDD->SetCooperativeLevel(NULL, DDSCL_NORMAL); //通过调用lpDD->SetCooperativeLevel函数来程序的运行方式,比如全屏模式、窗口模式等rn if (FAILED(hr)) fprintf(stderr, "SetCooperativeLevel failed\n"); return -1; rn ZeroMemory(&ddsd, sizeof(ddsd)); //先将DDSURFACEDESC结构清空rn ddsd.dwSize = sizeof(ddsd); // dwSize 成员被设为 DDSURFACEDESC 结构的大小,可以预防任何 DirectDraw 函数返回不可用成员错误rn ddsd.dwFlags = DDSD_CAPS; //确定了DDSURFACEDESC 结构中的哪一个成员将被填充有效信息,这里为DDSD_CAPSrn ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;rn hr = lpDD->CreateSurface(&ddsd, &lpPrimary, NULL);//调用此函数创建主表面rn if (FAILED(hr)) fprintf(stderr, "CreateSurface (primary) failed\n"); return -1; rn ZeroMemory(&ddsd, sizeof(ddsd));//创建YUV表面前需要重新填充DDSURFACEDESC结构,因此需要将之前已经填充的DDSURFACEDESC结构清空,重新填充rn ddsd.dwSize = sizeof(ddsd);rn ddsd.dwFlags = DDSD_CAPS | DDSD_WIDTH | DDSD_HEIGHT | DDSD_PIXELFORMAT;rn ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY;rn ddsd.dwWidth = width;rn ddsd.dwHeight = height;rn ddsd.ddpfPixelFormat.dwSize = sizeof(DDPIXELFORMAT);rn ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;rn ddsd.ddpfPixelFormat.dwFourCC = 0x32595559; // YUY2 4:2:2rn hr = lpDD->CreateSurface(&ddsd, &lpOverlay, NULL); //重新填充好以后,调用此函数创建YUV表面rn if (FAILED(hr)) fprintf(stderr, "CreateSurface (overlay) failed\n"); return -1; rn ZeroMemory(&ddsd, sizeof(ddsd));rn ddsd.dwSize = sizeof(ddsd);rn hr = lpOverlay->Lock(NULL, &ddsd, DDLOCK_SURFACEMEMORYPTR, NULL);//要获得对表面的使用权需要用到Lock函数来锁定需要的那片存储单元rn if (FAILED(hr)) fprintf(stderr, "Lock failed\n"); return -1; rn for (i=0; iUnlock(NULL);//对应之前使用的lock函数,调用Unlock函数来解除对该片存储单元的控制,以免造成内存的泄漏rn SetRect(&rcSrc, 0, 0, width, height);rn hr = lpOverlay->UpdateOverlay(NULL, lpPrimary, NULL, DDOVER_SHOW, NULL);rn if (FAILED(hr)) fprintf(stderr, "UpdateOverlay failed\n"); return -1; rn done = false;rn wait = false;rn while (!done)rn rn t1 = timeGetTime(); rn fd = fopen("D:\\news_cif_300.yuv", "rb");rn for (f=0; f 0) Sleep(t2);rn ZeroMemory(&ddsd, sizeof(ddsd));rn ddsd.dwSize = sizeof(ddsd);rn hr = lpOverlay->Lock(NULL, &ddsd, DDLOCK_SURFACEMEMORYPTR, NULL);//用Lock函数来锁定需要的那片存储单元rn if (SUCCEEDED(hr))rn rn for (i=0; i>1)]; for rn pv = &v[width2*i];//(i>>1)];rnrn for (j=0; jUnlock(NULL);// Unlock函数来解除对该片存储单元的控制,以免造成内存的泄漏rn rn if (wait || _kbhit())rn rn c = _getch();rn if (c=='q')rn rn done = true;rn fclose(fd);rn break;rn rn else if (c==' ')rn wait = true;rn elsern rn wait = false;rn t1 = timeGetTime();rn rn rn rn t1 += ms_per_frame;rn t2 = t1 - timeGetTime();rn if (t2 > 0) Sleep(t2);rn rn fclose(fd);rn break;rn //t2 = t1 - timeGetTime();rn //if (t2 > 0) Sleep(t2);rn rn hr = lpOverlay->UpdateOverlay(NULL, lpPrimary, NULL, DDOVER_HIDE, NULL);rn lpOverlay->Release();rn lpPrimary->Release();rn lpDD->Release();rn rn return 0;rnrnrnbool testsize(int w, int h, int s, int *pw, int *ph)rnrn if (s == w*h || s == (w*h*3)/2)//||--或rn rn *pw = w;rn *ph = h;rn return true;rn rnrn return false;rnrnrnrn功能是播放一个yuv文件,但是编译没错却无播放的画面,求解!多谢!
为何程序不出结果= =!
rn如果有十个数据,1,2 ,3,-4.......包括负数,求最大和,为何我写的程序不出结果,求指教rnrnrnrnrn#includernint main()rnrn int Maxsum(int A[10]);rn int i,sum,a[10];rnrn for(i=0;i<=10;i++)rn scanf("%d",&a[i]);rnrnrn rn sum=Maxsum(a);rn printf("%d",&sum);rn return 0;rnrnrnrnint Maxsum(int A[10]) rnrn int Thissum,Max,j;rn Thissum=Max=0;rn for(j=0;j<10;j++)rn rn Thissum+=A[j];rn if(Thissum>Max)rn Max=Thissum;rn elsern if(Thissum<0)rn Thissum=0;rn rn return Max;rnrnrn
为什么得不出结果?
为什么下面代码得不出结果?王国荣书上也是这样写的阿。。。rnSource = "select cm from table1 where zd1 like '" & Text1.Text & "%'"rnData1.RecordSource = SourcernData1.Refreshrn
php+access,显示不出结果
Open($connstr);rn$rs = new com("ADODB.RecordSet");rn?>rnrnrn rn Open("select unid,title from article where classname='最新公告' order by unid desc",$conn,1,1);rn if (!$rs->eof)rn rn ?>rn rn rn">Fields("title") ?>rnrn rn Close();rn ?>rn rnrnrn显示的时候是:Object 可是我的内容不是这个呀
为什么得不出正确结果?
#includernmain()rnrnint a,b,c,w;rnscanf("%d,%d,%d",&a,&b,&c);rnw=a;rnif(w
为什么运行不出结果
#include rn void main()rnrn int a[]=1,2,3,k=0;rn char c[]='h','s','g';rn while(k!=3)rn if(k=0)rn a[1]=0,k=k+1;rn printf("m&%c==>\n",c[1]);rn rn elsern if(k==1&&a[1]==0)rn a[0]=0,k=k+1;rn printf("m&%c==>\n",c[0]);rn rn elsern if(a[0]==0&&k==1)rn a[2]=0,k=k+1;rn printf("m&%c==>\n",c[2]);rn rn elsern if(k==2&&a[1]==2)rn a[2]=0,k=k+1;rn printf("m&%c==>\n",c[1]);rn rn elsern if(k==2)rn a[1]=0;rn k=k+1;rn printf("m&%c==>\n",c[1]);rn rn if(k==1)rn printf("<==m\n");rn elsern if(k==2&&a[2]==3)rn k=k-1,a[1]=2;rn printf("<==m&%c\n",c[1]);rn rn elsern if(k==2&&a[1]==2)rn printf("<==m\n");rn rnrn
怎么编译不出结果
#includernvoid main()rnrn int a[1501];rn int k=0,m,i,j;rn for(i=0;k<=1500;i++)rn rn m=i;rn while(m!=1)rn rn if(m%2==0) m=m/2;rn else if(m%3==0) m=m/3;rn else if(m%5==0) m=m/5;rn else break;rn rn if(m==1) rn rn k++;rn a[k]=i;rn rn rn for(j=0;j<1501;j++)rn cout<
运行不出结果??
#includern#includern#define n 2rn#define m 10rnvoid sort(char a[n][m])rnrn int i,j,k;rn char t[m];rn for(i=0;i0)k=j;rn t[m]=a[k][m];rn a[k][m]=a[j][m];rn a[j][m]=t[m];rn rnrnint main()rnrn char a[n][m];rn int i;rn printf("输入%d个字符串:\n",n);rn for(i=0;i
jsp+access 查询不出结果
<% request.setCharacterEncoding("gb2312");%>rn<%rnString Recordset__t1 = "0";rnif (request.getParameter("items") !=null) Recordset__t1 = (String)request.getParameter("items");rn%>rn<%rnString Recordset__t2 = "0";rnif (request.getParameter("search") !=null) Recordset__t2 = (String)request.getParameter("search") ;rn%>rn<%rnDriver DriverRecordset = (Driver)Class.forName(MM_conn_DRIVER).newInstance();rnConnection ConnRecordset = DriverManager.getConnection(MM_conn_STRING,MM_conn_USERNAME,MM_conn_PASSWORD);rnPreparedStatement StatementRecordset = ConnRecordset.prepareStatement("SELECT * FROM Publisher WHERE ? like ? ORDER BY newsdata DESC");rnStatementRecordset.setObject(1, Recordset__t1);rnStatementRecordset.setObject(2, "%" + Recordset__t2 + "%");rnResultSet Recordset = StatementRecordset.executeQuery();rnboolean Recordset_isEmpty = !Recordset.next();rnboolean Recordset_hasData = !Recordset_isEmpty;rnObject Recordset_data;rnint Recordset_numRows = 0;rn%>rnrn为什么查不出结果呢?那个sql语句有问题么》应该怎么修改呢
为什么还是不出结果?
那中间有变量时呢?为什么又不行了?rnrndeclare @str varchar(100),@Q varchar(100) rnexec('select '+@Q+'=empco from Employees' )rnprint @Qrnrn报错:rnrn服务器: 消息 170,级别 15,状态 1,行 1rn第 1 行: '=' 附近有语法错误。rnrn司马尚龙补充声明:rnrndeclare @str varchar(100),@Q varchar(100) rnselect @Q=empco from Employeesrnrnprint @Qrnrn这样是可以出结果的。rn
为什么不出结果???急!!
各位大哥帮帮忙!!rn 我从客户端调服务器里的数据,为什么不出结果??rn 我的代码如下:rn rnrnrnrnrn rn 按客户id 搜索rnrnrnrn 客户资料表rn rn 序号 客户id 客户名称 联系人 移动电话 单位电话 传真 邮箱 地址 网络拓扑图 平面图 rn<% rndim sqlstr,cuid,rs_mainrncuid=request.form("cuid")rnconn.open connstrrnset rs_main=server.createobject("adodb.recordset")rnsqlstr="select * from cu where 客户id='"&cuid&"'"rnresponse.write ("sqlstr")rnrs_main.open "cu",strsql,conn,1,3rnset rs_main=conn.Execute(strSQL)rnIf not rs_main.EOF Thenrn' 如果recordset不为空, 则客户id 存在rnSession("bolAuthenticated") = Truern'将bolAuthenticated 设为Truerni=0rn'循环读取记录集rndo while not rs_main.eofrn'i 为序号rni=i+1rnresponse.write " "rnresponse.write " " &irn'显示客户资料表rnresponse.write" " & rs_main("客户id")rnresponse.write " " & rs_main("客户名称")rnresponse.write " " & rs_main("联系人")rnresponse.write " " & rs_main("移动电话")rnresponse.write " " & rs_main("单位电话")rnresponse.write " " & rs_main("传真")rnresponse.write " " & rs_main("邮箱")rnresponse.write " " & rs_main("地址")rnresponse.write " " & rs_main("网络拓扑图")rnresponse.write " " & rs_main("平面图")rnrs_main.movenextrnlooprnresponse.write ""rnrs_main.closernset rs_main=nothingrn%>rnrnrnrnrnrn还请各位大哥帮帮老弟!!多谢!
不出正确结果
想把数组a[2][3]转成数组b[3][2]rn#include "stdio.h" rnmain()rnrn static int a[2][3]=1,2,3,4,5,6;rn static int b[3][2],i,j;rn printf("array a:\n");rn for(i=0;i<=1;i++)rn rn for(j=0;j<=2;j++)rn rn printf("%5d%",a[i][j]);rn b[j][i]=a[i][j];rn rn printf("\n");rn rn printf("array b: \n");rn for(i=0;i<=2;i++)rn rn for(j=0;j<=1;j++);rn printf("%5d",b[i][j]);rn printf("\n");rnrn rnrnrn
vbscript不出alert弹窗,急求答案!!
rnrn程序很简单,就是要点击按钮弹出alert提示,但是怎么点击都没反应,求解释。rn我知道改成javascript就行了,但这里要求的必须用vbscript。。求大神们帮帮忙啊。。
为什么alert()输不出,求解,谢谢
nn n n n
为什么alert不出所选择的日期?
请浏览http://218.9.186.36/aaa/selectDate.asp这个地址看看为什么点击按钮时得不到所选的日期?rnrnselectDate.asp的源代码如下:rnrnrnrn rn rn Untitle Documentrnrnrn rnrnrn rnrnrnrnrnrn
Ajax可以返回数据,也可以alert,但是无法显示在页面
用Ajax返回的Json数据,可以Alertrn也可以单纯的输出Json数据,但是加上某个html标签之后,就会不显示。rn[code=javascript]rn for (var i = 0; i < json.length; i++) rn $("#ddtShop").append($("").val(json[i].ShopID).html(json[i].Name));rn ;rn alert($("#ddtShop").html());rn[/code]rnrn可以alert $("#ddtShop").html(),也是正确的,但是就是不在页面显示rnrn求大神,这是什么问题?rn
为什么alert表现不出Unicode字符
我的script代码是如下的: rn rn rn但是弹出来的警告框并没有将a ;转化为arn rn![图片说明](https://img-ask.csdn.net/upload/201612/05/1480948120_123766.png)
运行成功!但是输入后不出结果就结束!
#includern#includernmain()rnrn double x,s;rn printf("input number:\n");rn scanf("%lf",&x);rn s=sin(x);rn printf("sine of %lf is %lf\n",x,s);rnrn运行成功,但是输入一个数后就结束!为什么!用的dev-c++
mybatis 查询不出结果,但是打印的SQL 可以执行
我今天发现了一个非常诡异的错误,我在此请求大家集思广益一下.rnrn我的系统采用的是 spring + mybatis ,我在做一个简单的数据查询的时候碰到查询不出来的问题,开始我认为是 resultMap 配置有问题,后台我测试很多遍发现不是这个原因, 最后我发现一个诡异的事情,rnrnList resList = sysUserAccountService.selectByParam(sysUserAccount);rn这个语句是一个简单的调用service 在调用--> mapper 的简单查询,在我采用 (1) 号 写法的时候 ,可以正常返回 LIST rn但是采用 (2) 号 写法的时候,,,LIST = nullrn也就是说我无法带值进去查询,但是写 where id is not null 是可以查询到, 写 where id = 'A001' LIST 就是 等于NULLrnrn另外一个问题就是,某些SQL语句, JAVA 调用DAO方法的结果为NULL的时,mybatis 的日志打印出来的SQL 我试着放到 数据库工具中运行是有结果,也就代表SQL 肯定没写错.rnrnselelect (1) 号rn```rnrn select * from sys_user_accountrn rn```rn1号 返回结果正常,LIST收到100多个记录rnrnrnselelect (2) 号rn```rn rn select * from sys_user_accountrn where ACCOUNT_TYPE = 3rnrn```rn2号 JAVA LIST 接收到的为一个空LIST ,LIST 中的元素为 null SIZE 为 0. 里面的值我都写死了,排除了传值问题,所有这么写rnrnrn 3号rnrnrn```rn rn select * from sys_user_accountrn where ACCOUNT_TYPE is not nullrn rn```rn结果是正常,查询到了所有 TYPE 不为空的rnrn我感觉很奇怪,找了很久都没有找到问题,希望有人能帮帮我.rnrnrn
不知道怎么形容这个问题,但是得不出结果
#include "stdafx.h"rn#include "iostream.h"rnrnvoid main()rnrn const int num =17;rn int a[num];rnrn for(int i=0; i
poj1001 我感觉没问题,但是得不出结果,求大佬指点
程序代码如下:https://pastebin.com/i2A1w6CX
C#连接SQLServer数据库,运行正确,但是不出结果
C#连接SQLServer数据库,运行正确,但是不出结果,代码如下nn```n string conn, sql;n conn = "Server=.;Database=13rj;Trusted_Connection=SSPI";//13rj是数据库名称n sql = "select * from 13rj_basic";//13rj_basic是表名称n SqlConnection myconn = new SqlConnection(conn);n myconn.Open();n SqlDataAdapter myda = new SqlDataAdapter(sql, conn);n DataSet myds = new DataSet();n myda.Fill(myds, "13rj_basic");n dataGridView1.DataSource = myds.Tables["13rj_basic"];n```nn
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法