jquery js 页面加载不能初始化方法是什么原因呀,求大神指点

jquery js 页面加载不能初始化方法是什么原因呀,求大神指点

5个回答

检查下你加载js的路径对不对

官方引用:
相对路径引用:
谷歌引用:

刚刚忘了用代码块,回答没有显示<script>标签内容

官方引用:

 <script src="http://code.jquery.com/jquery-latest.js"></script>

相对路径引用:

 <script src="/js/jquery-1.4.4.min.js" type="text/javascript" ></script>

谷歌引用:

 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"type="text/javascript"></script>

只能加载一部分方法是什么原因

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
js jquery 页面加载初始化方法
1.JS页面加载初始化 2.JQuery页面加载初始化
js 页面加载初始化方法
jquery和js初始化加载页面的区别 jquery:等待页面加载完数据,以及页面部分元素(不包括图片、视频), js:是页面全部加载完成才执行初始化加载。 js jquery 页面加载初始化方法 一.js 页面加载初始化方法 // 1.在body里面写初始化方法. &amp;lt;body onload='init()'&amp;gt; &amp;lt;/body&amp;gt; &amp;lt;script type=&quot;t...
JQuery问题求大神指点
![图片说明](https://img-ask.csdn.net/upload/201512/09/1449639048_694821.jpg)n这个题是怎么做的???
Jquery与JS页面加载的区别
&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="UTF-8"&gt; &lt;title&gt;JS与JQ页面加载区别&lt;/title&gt; &lt;script type="text/javascript" src="../../js/jquery-1...
js问题,求大神指点!
rnrnrn```rn rnrn rn```rnrnrnrnrn这是一个传参数的方法,问题是:为什么ddd函数的参数,在不带单引号的时候,也就是如上代码的时候,alert出来的是2010106115268001500而不是2010106115268001565,而在个数字两边加上单引号的时候,alert出来的数据就是正常的呢?rn请大神指点,在线等
关于js的,求大神指点
[img=https://img-bbs.csdn.net/upload/201604/30/1461993383_17126.png][/img][align=left][/align] rn rn就是怎么点击点选框之后,点击表情,将将表情图片写入文本框中rn再附上代码rn rn
求JS(Jquery)大神指点迷津
[img=https://img-bbs.csdn.net/upload/201408/20/1408518664_21448.jpg][/img]rn在循环中执行这两行代码,rn已经确认js[0].UserId与js[1].UserId完全相等rn但是第一次alert出来的是nullrn第二次却出来了正确结果rn什么原因导致的????
不能格式化C盘,是什么原因呀?
我想重装系统,可是不能格式化C盘呀。rn我用的是WIN98SE版本呀。rn
求大神指点 求大神指点
a表按照b表的规则转换到c表上去rnrnrna表按照b表的规则转换到c表上去rnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[TB_DataPlat] 脚本日期: 08/26/2013 11:23:26 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[TB_DataPlat](rn [DataID] [int] NOT NULL,rn [PFKID] [int] NULL,rn [UseType] [int] NULL,rn [DataSign] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL,rn [Data] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data1] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data2] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data3] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data4] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data5] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data6] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data7] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data8] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data9] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data10] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data11] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data12] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data13] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data14] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data15] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data16] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data17] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data18] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data19] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data20] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data21] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data22] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data23] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data24] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data25] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data26] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data27] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data28] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data29] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data30] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data31] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data32] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data33] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data34] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data35] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data36] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data37] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data38] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data39] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data40] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data41] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data42] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data43] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data44] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data45] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data46] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data47] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data48] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data49] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data50] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data51] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data52] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data53] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data54] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data55] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data56] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data57] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data58] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data59] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data60] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data61] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data62] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data63] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data64] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data65] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data66] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data67] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data68] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data69] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data70] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data71] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data72] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data73] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data74] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data75] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data76] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data77] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data78] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data79] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data80] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data81] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data82] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data83] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data84] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data85] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data86] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data87] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data88] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data89] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data90] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data91] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data92] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data93] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data94] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data95] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data96] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data97] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data98] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data99] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data100] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn CONSTRAINT [PK_TB_DataPlat] PRIMARY KEY CLUSTERED rn(rn [DataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftData] 脚本日期: 08/26/2013 11:24:04 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftData](rn [CraftDataID] [int] IDENTITY(1,1) NOT NULL,rn [DataPlatID] [int] NULL,rn [CraftID] [int] NULL,rn [ProcessID] [int] NULL,rn [GoodsID] [int] NULL,rn [ProductID] [int] NULL,rn [ProductCode] [varchar](60) COLLATE Chinese_PRC_CI_AS NULL,rn [Machine] [int] NULL,rn [StandardValue] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [RelateID] [int] NULL,rn [ParentID] [int] NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULL,rn [CraftType] [int] NULL,rn CONSTRAINT [PK_PP_CraftData] PRIMARY KEY CLUSTERED rn(rn [CraftDataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftDataProperty] 脚本日期: 08/28/2013 09:49:06 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftDataProperty](rn [CraftDataProID] [char](10) COLLATE Chinese_PRC_CI_AS NULL,rn [CraftDataID] [int] NULL,rn [DataPlatID] [int] NULL,rn [DataPFKID] [int] NULL,rn [CraftID] [int] NULL,rn [RowSign] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,rn [ProID] [int] NULL,rn [Data] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Type] [int] NULL,rn [UseType] [int] NULL,rn [ProType] [int] NULL,rn [RateType] [int] NULL,rn [Rate] [decimal](10, 4) NULL,rn [Formula] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [DeletedFlg] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULLrn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnrnrn哪位大神能给个建议 或思路呀 没有多少分了 见谅
找不到出错原因,求大神指点
import java.util.Scanner;rnpublic class Args rn public static void main(String[] args)rn Scanner in=new Scanner(System.in);rn int size=10;rn int[] a=new int[size];rn for(int i=0;i
求大神指点Qt崩溃问题原因
软件报错崩溃,错误如下图片所示,但在代码中未使用QVector定义,仅使用了QList,不知道问题改如何查找,跪求大神指点。n[img=https://img-bbs.csdn.net/upload/201812/24/1545614679_780186.png][/img]
求大神呀求大神
Android新手,求几个小项目接口,要面试了,惶恐呀惶恐[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/21.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/49.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/49.gif][/img]
JS与JQuery页面加载问题 求助
代码1:rnwindow.attachEvent("onload",init);rnfunction init()rn//执行的代码;rn rn代码2:rn$(document).ready(function()rn // 在这里写你的代码...rn);rn问题来了,rn当我使用代码1的时候:rn此时显示正确(控件加载完毕后,弹出消息框)rn[img=http://img.my.csdn.net/uploads/201211/09/1352434163_3447.png][/img]rn按F5刷新后rn也显示正确(控件加载完毕后,弹出消息框)rn[img=http://img.my.csdn.net/uploads/201211/09/1352434226_4448.jpg][/img]rnrn当我使用代码2的时候:rn首次载入显示正确(控件加载完毕后,弹出消息框)rn[img=http://img.my.csdn.net/uploads/201211/09/1352436983_8520.jpg][/img]rn按F5刷新后 显示错误(控件还没有全部加载完,就弹出 消息框了。)rn[img=http://img.my.csdn.net/uploads/201211/09/1352437438_6046.jpg][/img]rnrn
求大神指点指点!
我现在用asp.net 写一个采集。 rnrn有300多个城市 每个城市基本都有2400多条数据。rnrn我想采集起来快一点。 请问有什么好的办法吗!rnrn因为中间还要分析页面上的数据。采集图片等等。 所以速度相对比较慢rnrn那位大神能给点这样的思路或者代码。rn
求大神指点指点
我的是Ubuntu18.04系统;rn里面有docker,我想要把容器挂载到宿主机,报错“mount.nfs: access denied by server while mounting 192.168.0.1:/nfsdisk/”rn请大神们指点一下,这个问题怎么解决;
求大神指点方案,js,jquery,jsp,java
我的一个jsp,需要根据一个下拉框来选择呈现不同的明细,rn我的jsp中引入了3个明细,默认初始化时只显示一个,rnrn <%@include file="文件路径1" />rnrnrn <%@include file="文件路径1" />rnrnrn <%@include file="文件路径1" />rnrn因为这里面的数据的明细代表3张表,只能提交其中的一个,隐藏了也会提交服务器,所以我采用了在js中放一个全局变量存储rn这三个页面的值,然后用jquery清除掉两个($("id名").html("");),显示其中的一个,但是我下拉的时候,直接用jquery的$("id名").html(array[0]); 时会报错无权限,SCRIPT70: 没有权限 ,然后我就把页面直接不include了,直接放进来,还是报错,求大神指点方案rn
是什么原因呀
"0652e7265"指令引用的“0x652e7265”内存。该内存不能"read".rn要中止程序,请单击确定rn要调试程序,请单击取消rn运行程序出现这个是什么原因呀
拒绝访问?是什么原因呀?
ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 MACHINE\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 rnrn若要授予 ASP.NET 对文件的写访问权,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。rnrnrnrn我已经把所有用户的权限都选上了,怎么会事呀???rnrnrnrn
是什么原因造成的呀。
运行代码之后,ie的报错如下:rnrnADODB.Recordset 错误 '800a0e7d' rn连接无法用于执行此操作。在此上下文中它可能已被关闭或无效。 rnrn/bbs/index.asp,行100 rnrnrn主要代码如下:rnset crs=server.CreateObject("adodb.recordset") '98行rnsql="select CID,CTitle from m3_category where Cvalid=1 order by Cindex asc" '99行rncrs.open sql,conn,1,1 '100行rnif crs.eof and crs.bof then '101行rn response.Write(" 暂无分区 ...") '102行rnelsern crs.movefirstrn rscount=crs.recordcountrn set CID=crs(0)rn set CTitle=crs(1)rn i=0rnend ifrn
是什么原因,怎么改呀
[img=https://img-bbs.csdn.net/upload/201407/10/1405001896_978938.jpg][/img]
这个是什么原因呀
Java HotSpot(TM) 64-Bit Server VM warning: MaxNewSize (1048576k) is equal to or greater than the entire heap (1048576k). A new generation size of 1048512k will be used.rn一月 11, 2016 4:04:44 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.rn一月 11, 2016 4:04:44 下午 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn一月 11, 2016 4:04:45 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)rn一月 11, 2016 4:04:45 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn一月 11, 2016 4:04:45 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn一月 11, 2016 4:04:45 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 966 msrn一月 11, 2016 4:04:45 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn一月 11, 2016 4:04:45 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.40rn一月 11, 2016 4:04:45 下午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\apache-tomcat-7.0.40\webapps\baseCreditrn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.ptop.credit.listener.sys.AuthCtrlListenerrnjava.lang.ClassNotFoundException: com.ptop.credit.listener.sys.AuthCtrlListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4823)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Error configuring application listener of class com.ptop.credit.listener.base.OgnlSecurityListenerrnjava.lang.ClassNotFoundException: com.ptop.credit.listener.base.OgnlSecurityListenerrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:527)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:137)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4823)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Skipped installing application listeners due to previous error(s)rn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error listenerStartrn一月 11, 2016 4:04:49 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/baseCredit] startup failed due to previous errorsrn一月 11, 2016 4:04:49 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn一月 11, 2016 4:04:49 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn一月 11, 2016 4:04:49 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 4489 msrn
页面加载问题,求高手指点
我的网站出现了点问题。rnrn在页面的头部加载了很多JS和CSS文件。但其中有几个是已经被删除的了。就是无法再访问到的了。rnrn在以往的服务器上。都是会直接忽略掉的。不会造成什么影响。rnrn但是我目前的服务器会出现一直加载的状况。一开始我也不明白是怎么回事。后来经过检测。发现是一直在加载那些不存在的文件。包括CSS属性中定义的一些背景图片也是如此,如果找不到那张JPG图片。就一直在那里加载。网页状态是正在链接。就是打不开。rnrn我找一个内容较少的页面进行了测试。把所有无法加载、不存在的文件都注释掉以后。就全部正常了。可以肯定是因为找不到那些已经被不存在的文件所以一直加载的。rnrnCSS文件和JS文件加载不到,一直加载我还能理解。但是为什么连CSS里设置的背景图片不存在它也一直在那加载。我就崩溃了。rnrn我就是不太明白。为什么服务器会出现这种情况。是不是Apache设置的问题呢?求大神指点!!
求大神指点:Jquery ui position问题
点击按钮显示一个div,利用position方法定位,父元素绝对定位在右下角,但是第一次点击按钮显示和第2次显示的位置不一样(本人想要的效果是点击按钮,实现隐藏和显示,但是他的位置不能变),求大神指导rn第一次点击按钮后显示如图rn[img=http://img.my.csdn.net/uploads/201304/08/1365433037_4751.jpg][/img]rn第二次点击按钮后显示如图rn[img=http://img.my.csdn.net/uploads/201304/08/1365433077_5281.jpg][/img]rnrnrnrnrn rn jQuery UI Position - Default functionalityrn rn rn rn rn rn rn rn rn rn rnrn rn rn rn This is the position parent element.rn rn rn rn rn to positionrn rn rn rn rn
JQuery 开关灯问题,求大神指点
n为啥点击只能使之变黑,再点就没反应了呀。。。n```n nnn n n n n n nnn nnnn```nnn
为啥不能交换呀 求大神支招
#include rnvoid swap(int a,int b);rnint main()rnrn int x=8,y=10;rn int t=0;rn cout<<"x="<
不能上网是什么原因?
局域网中一台机器不能上网,换到另个可以上网的电脑的网线也不行。可能是什么原因。
不能显示,是什么原因???????????????????
[code=PHP]rn while ($arrRow = mysql_fetch_row ($result))rn rn ?>rnrnrnrnrn编辑rn删除rnrnrnrnrn[/code]rnrn[size=14px]rn[color=#FF0000]为什么这么写可以显示结果rnrn这么写就不行呢?[/color][/size]
不能重定向是什么原因?
我在Jbuilder7里面,写了一个登录的servlet程序时候,发现不能重定向到另一个网页,有人知道是什么原因吗?代码如下:rnlogin.jsprn//----------------------rn rnrn rn 社区登录 rn 用户名:rn rn 密码:rn rn 登录rn 注册 找回密码rn rn//-----login_ok(Servlet)-----rnpackage richhowe;rnrnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.io.*;rnimport java.util.*;rnimport java.sql.*;rnimport com.richhowe.tools.utils.StringUtils;rnimport com.richhowe.tools.Codify;rnimport com.richhowe.tools.Log;rnimport com.soten.connectionpool.PoolManager;rnimport com.richhowe.datebase.DBAccess;rnrnpublic class Login_ok extends HttpServlet rn static final private String CONTENT_TYPE = "text/html; charset=GB2312";rn //Initialize global variablesrn public void init() throws ServletException rn rn //Process the HTTP Get requestrn public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn response.setContentType(CONTENT_TYPE);rn HttpSession session = request.getSession(true);rn String userName = StringUtils.Trim(Codify.toChineseStr(request.getParameter("username")));rn String userPwd = StringUtils.Trim(Codify.toChineseStr(request.getParameter("userpwd")));rn String sqlStr = "";rn Connection conn = null;rn ResultSet rs = null;rn UserInfo userInfo = new UserInfo();rn tryrn sqlStr = "SELECT ID FROM USERINFO WHERE USERNAME='"rn + userName + "' AND USERPWD='" + userPwd + "'";rn conn = PoolManager.getConnection();rn rs = DBAccess.executeQuery(conn, sqlStr);rn if(rs.next())rn userInfo.setID(rs.getInt("ID"));rn userInfo.setUserName(userName);rn userInfo.setUserPwd(userPwd);rn session.setAttribute("userinfo", userInfo);rn response.sendRedirect("/index.jsp");rn rn elsern String errorMsg = "用户名不存在,请重新登录|||密码不正确,请重新登录";rn response.sendRedirect("/error.jsp?errorMsg=" + errorMsg);rn rn rn catch(Exception ex)rn Log.writeLog("Login_OK: ERROR!");rn rn rn //Clean up resourcesrn public void destroy() rn rnrn断点经过response.sendRedirect("/index.jsp");可是页面没有跳转到index.jsp,在线等待!
出的是什么错误呀,求高手指点
import java.awt.*;rnimport java.awt.event.*;rnimport java.swing.*;rnpublic class Hrnrnrn public static void main (String args[])rn rnrn Frame f=Frame();rnrnrnrn TextArea t1=textArea();rn MenuBar bar =new MenuBar();rn Menu m1 =new Menu("编辑");rn MenuItem mi1 = new MenuItem("自制");rn MenuItem mi2 = new MenuItem("粘贴");rn MenuItem mi3 = new MenuItem("删除");rn new H();rnrnrnrn ;rn f.pack();rn f.show();rnrn H()rn rn f.add(bar);rn f.add(t1);rn bar.add(m1); rn m1.add(mi1);rn m1.add(mi2);rn m1.add(mi3);rnrnrn mi1.addActionListener(new myActionListener());rn mi2.addActionListener(new myActionListener());rnrn f.addWindowListener(new WindowAddpter()rn rn public void windowClosing (WindowEvent e)rn rn System.exit(0);rn rn );rnrnrnrnrnrn rnrn class myActionListenerrn rn public void actionPerformed(ActionEvent e)rn rn if (e.getSource()==mi1)rn t1.copy();rn if (e.getSource()==mi2)rn t2.paste(); rn if (e.getSource()==mi3)rn t1.delete();rnrn rn rn rn rnrnrnrnrnrnrnrn
页面加载中js 页面加载中js 页面加载中js
页面加载中js 页面加载中js 页面加载中js 页面加载中js 页面加载中js
jquery 滑动效果 JS 求大神指教
代码太长贴不上来,怎么上传附件啊?rnrn[code=javascript]$this.children('li').each(function()rn var $li = $(this);rn rn //Moving like a typewriterrn cursor.x += 1;rn //if we reach the end of columns, add a new line and reset typewriterrn if(cursor.x > settings.columns)rn cursor.x = 1;rn cursor.y += 1;rn rn //if we reach the end of the page, turn the pagern if(cursor.y > settings.rows)rn cursor.x = 1;rn cursor.y = 1;rn cursor.page += 1;rn rn rn //attach each li information about it's position in the listrn $li.data('layout', $.extend(,cursor));rn rn if(settings.direction == 'vertical')rn rn // Lay the pages in a vertical orderrn $li.css(rn 'top': Math.round((cursor.y * cells.height - cells.height/2) - ($li.height()/2) + (cursor.page - 1) * properties.height),rn 'left': Math.round((cursor.x * cells.width - cells.width/2) - ($li.width()/2))rn );rn rn //this might be a silly approach.. but.. if the list contains an image.. I want torn //reposition the li.. because before we didn't know the dimensions of imagern $li.find('img').bind('load', function()rn var cursor = $li.data('layout');rn $li.css(rn 'top': Math.round((cursor.y * cells.height - cells.height/2) - ($li.height()/2) + (cursor.page - 1) * properties.height),rn 'left': Math.round((cursor.x * cells.width - cells.width/2) - ($li.width()/2))rn );rn );rn rn else rn rn //Lay the pages in a horizontal orderrn $li.css(rn 'top': Math.round((cursor.y * cells.height - cells.height/2) - ($li.height()/2)),rn 'left': Math.round((cursor.x * cells.width - cells.width/2) - ($li.width()/2) + (cursor.page - 1) * properties.width)rn );rn rn //the same approach for images for the horizontal orderrn $li.find('img').bind('load', function()rn var cursor = $li.data('layout');rn rn $li.css(rn 'top': Math.round((cursor.y * cells.height - cells.height/2) - ($li.height()/2)),rn 'left': Math.round((cursor.x * cells.width - cells.width/2) - ($li.width()/2) + (cursor.page - 1) * properties.width)rn );rn );rn rn rn rn );rn rn rn cells.pages = cursor.page;rn $this.data('promptumenu_page_count', cells.pages);rn rn //and append the navigation buttons for each pagern if(cells.pages > 1 && settings.pages == true)rn var page_links = 'Page 1';rn for(i = 2; i <= cells.pages; i++)rn page_links = page_links + 'Page ' + i + '';rn rn rn $this.parent('div.promptumenu_window').append(' ' + page_links + '');rn rn //bind the nav buttons to navigate to the specific pagern $this.parent('div.promptumenu_window').find('.promptumenu_nav a').bind('click.promptumenu', function()rn methods.go_to($(this).index() + 1);rn );rn rn rn //Make the list size appropriate, so that it could be draggedrn //(or else users will be able to drag only by clicking the icons, but clickingrn // on background will not activate dragging)rn if(settings.direction == 'vertical')rn $this.css(rn 'width': properties.width,rn 'height': properties.height * cells.pagesrn );rn else rn $this.css(rn 'width': properties.width * cells.pages,rn 'height': properties.heightrn );rn rn rn //Binding all the drag movementsrn $this.bind('mousedown.promptumenu', function(mdown)rn mdown.preventDefault();rn rn $this.stop(true, false);rn rn var init_pos = $this.position();rn var click = rn 'x': mdown.pageX,rn 'y': mdown.pageYrn ;rn var delta = rn 'x': 0,rn 'y': 0rn ;rn var mmove_event = new Array();rn rn //bind the mousemove to moving the listrn $(document).bind('mousemove.promptumenu', function(mmove)rn mmove.preventDefault();rn var date = new Date();rn var this_event = rn 'time': date.getTime(),rn 'x': mmove.pageX,rn 'y': mmove.pageYrn ;rn rn //I want to get the average of the last 6 mousemove events before mouseuprn while(mmove_event.length > 4)rn mmove_event.shift();rn rn rn if(settings.direction == 'vertical')rn delta.y = mmove.pageY - click.y;rn $this.css('top', init_pos.top + delta.y);rn else rn delta.x = mmove.pageX - click.x;rn $this.css('left', init_pos.left + delta.x);rn //$this.css('-webkit-transform', 'translate3d(' + (init_pos.left + delta.x) + 'px, 0, 0)');rnrn rn mmove_event.push(this_event);rn );rn [/code]rnrnrn他这个是三行图标,我想改为一行平行滑动怎么做 - -
求大神解释下 这段js是什么意思
rnrn请问这是什么意思
jQuery Ajax 初始化方法
$.ajaxSetup({ headers: { "Authorization": auth_token }, cache: false, //禁用缓存 dataType: "json", // contentType: "application/json", contentType: 'application/json', /**
求大神帮忙指点指点。
rn 现在碰到如下问题 、 需要查询几个平台下的全部店铺 (一个平台下有若干个店铺) 、使用如下语句 。rnrn[code=sql]rnSELECTrn `paipai_shop`.`sellerUin` AS `shopId`,rn `paipai_shop`.`shopName` AS `shopName`rnFROMrn `paipai_shop`rnUNION ALLrn SELECTrn `dangdang_shop`.`id` AS `shopId`,rn `dangdang_shop`.`shopName` AS `shopName`rn FROMrn `dangdang_shop`rn UNION ALLrn SELECTrn `vjia_shop`.`id` AS `shopId`,rn `vjia_shop`.`shopName` AS `shopName`rn FROMrn `vjia_shop`rn UNION ALLrn SELECTrn `amazon_shop`.`id` AS `shopId`,rn `amazon_shop`.`shopName` AS `shopName`rn FROMrn `amazon_shop`rn UNION ALLrn SELECTrn `taobao_shop`.`shopId` AS `shopId`,rn `taobao_shop`.`nick` AS `shopName`rn FROMrn `taobao_shop`rn UNION ALLrn SELECTrn `jingd_shop`.`shopId` AS `shopId`,rn `jingd_shop`.`shopName` AS `shopName`rn FROMrn `jingd_shop`rn UNION ALLrn SELECTrn `yhd_shop`.`shopId` AS `shopId`,rn `yhd_shop`.`shopName` AS `shopName`rn FROMrn `yhd_shop`[/code]rn 查询出来后 、 因为不同平台下的店铺可能有相同的 shopId 、 导致页面上相同shopid的店铺只显示一个条数据 。 求有无解决方法 。 rn rn rn 我曾经尝试给不同平台下的店铺shopid 后面 拼接 数字 譬如 :[color=#FF0000]`yhd_shop`.`shopId`+0[/color] AS `shopId` 结果 没有用 。哪位大神给个解决方法?
jquery页面加载与javascript页面加载的区别
javascript: 页面加载时存在覆盖现象,相同的方法后面的会把前面的覆盖掉; jQuery: 不存在覆盖现象,顺序执行;且jQuery比javascript先加载完成; 例子: jquery与js页面加载区别.html window.onload = function() { alert("赵钱"); } window.onload = function
求大神帮忙呀
错误时这么说的:当传递具有新行的 DataRow 集合时,更新要求有效的 InsertCommand。rnrnrnusing System;rnusing System.Collections;rnusing System.Configuration;rnusing System.Data;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.HtmlControls;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnrnpublic partial class Masters_AdminBlue_Demo_Add : System.Web.UI.Pagernrn private int CateId;rnrn protected void Page_Load(object sender, EventArgs e)rn rn if (Request.QueryString["CateId"] != null)rn rn CateId = Convert.ToInt32(Request.QueryString["CateId"].ToString());rnrnrn rn rnrn protected void Button1_Click1(object sender, EventArgs e)rn rn COOL.NEWSTableAdapters.CMS_ContentTableAdapter adp = new COOL.NEWSTableAdapters.CMS_ContentTableAdapter();rn COOL.NEWS.CMS_ContentDataTable dt = new COOL.NEWS.CMS_ContentDataTable();rn COOL.NEWS.CMS_ContentRow dr =dt.NewCMS_ContentRow();rnrn dr.CateID = CateId; rn dr.CMS_Cnt =Convert.ToString(FCKeditor1.Value);rn dr.CMS_Title =Convert.ToString(tbOld.Text) ;rnrnrn dt.AddCMS_ContentRow(dr);rnrn if (adp.Update(dt) > 0)rn rn Tool.Message.ClientMsgPrompt(this, "添加成功");rn tbOld.Text = "";rn FCKeditor1.Value = "";rn rnrn elsern Tool.Message.ClientMsgPrompt(this, "添加失败");rn rnrn protected void Button2_Click(object sender, EventArgs e)rn rn Response.Redirect(string.Format("Add.aspx?CateId=0", CateId));rn rn
求大神指点哈
这个错误一直循环,怎么回事哦,能运行的项目都运行不起了,空项目都不能运行rn03-15 16:16:52.884 23816-23816/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:52.886 23816-23816/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:52.889 23816-23816/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.894 23816-23816/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.895 23816-23816/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.188 23814-23814/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:53.189 23814-23814/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:53.191 23814-23814/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.195 23814-23814/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.196 23814-23814/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn rn
求大神指点!谢谢
[img=https://img-bbs.csdn.net/upload/201312/10/1386654407_153499.jpg][/img]我想实现如图中间游戏房间那一块界面。但是还差点什么呢?求大神指点,label button上的图片还没加上去rn程序如下:rnimport javax.swing.JButton;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnrnpublic class ScendGui extends JFrame rn private static int num = 1;rn private int jb_size=40;rn private int jl_size=45;rn private int fgap = 20;//行间隔rn private int fgap2 = 20;//列间隔rn private int rgap = 35;//两房间间隔rn private int mgap =2*jb_size+jl_size+rgap; //两桌子间隔rn private int fjb2gap = fgap+jl_size+jb_size;//jb2的首距离rn private int fjlgap = fgap+jl_size; //jl的首距离rn public ScendGui(String s)rn super(s);rn rn this.setLocation(100, 100);rn this.setSize(600, 600);rn for(int i = 1;i<=5;i++)rn for(int j= 0;j<=2;j++)rn rn JButton jb1= new JButton("椅子");rn jb1.setBounds(fgap+j*mgap, fgap2, jb_size, jb_size);rn JButton jb2= new JButton("椅子"); rn jb2.setBounds(fjb2gap+j*mgap, fgap2, jb_size, jb_size);rn JLabel jl= new JLabel("桌子");rn jl.setBounds(fjlgap+j*mgap, fgap2,jl_size, jl_size);rn String str = Integer.toString(num); rn JLabel label = new JLabel("-"+str+"-");rn num = Integer.parseInt(str);rn label.setBounds(mgap/2+j*mgap, 2*jb_size, 20, 20);rn this.add(jb1);rn this.add(jb2);rn this.add(jl);rn this.add(label);rn rn num++;rn fgap2 = (fgap2+2*jb_size)*i+20;rn rn this.setVisible(true);rn rn rn rn public static void main(String[] args) rn new ScendGui("游戏大厅");rnrn rnrnrn
SOS,求大神指点
我想在网站首页上放一个JS,动态捕获国际油价,铜价,请问怎么实现?
求大神指点
下面是迷宫寻找路径的方法,用的堆栈存储结构,要把堆栈的变化显示在下面的图形界面上,该怎么办啊[img=http://img.my.csdn.net/uploads/201303/01/1362135323_7628.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135480_8689.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135492_9720.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135508_5756.jpg][/img]
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表