小编Nim*_*hip的帖子

org.hibernate.HibernateException:无法实例化resultclass

完整堆栈跟踪:

org.hibernate.HibernateException: Could not instantiate resultclass: com.firstbankpr.lmu.data.dto.EmployeeScore
at org.hibernate.transform.AliasToBeanResultTransformer.transformTuple(AliasToBeanResultTransformer.java:99)
at org.hibernate.hql.HolderInstantiator.instantiate(HolderInstantiator.java:96)
at org.hibernate.loader.custom.CustomLoader.getResultList(CustomLoader.java:361)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:316)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1842)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:165)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:157)
at com.nimchip.lmu.data.dao.hibernate.WinnerHibernateDAO.findEmployeeTotals(WinnerHibernateDAO.java:155)
at com.nimchip.lmu.data.dao.WinnerDAOTest.testEmpScore(WinnerDAOTest.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62) …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate

16
推荐指数
2
解决办法
2万
查看次数

无法找到协议提供程序:smtp

春天新手.我遇到以下异常:

2012-06-14 16:20:57,719 [http-8080-6] ERROR com.nimchip.lmu.data.service.impl.CoworkerServiceImpl - Error sending mail:
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp. Failed messages: javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp
    at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:400) ~[spring-context-support-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:306) ~[spring-context-support-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:296) ~[spring-context-support-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    at com.nimchip.lmu.data.service.impl.CoworkerServiceImpl.genUpdateNomination(CoworkerServiceImpl.java:224) ~[lmu-dataaccess-1.0.0.jar:na]
    at com.nimchip.lmu.controller.coworkerNom.CoworkerController.genUpdateNomination(CoworkerController.java:312)
Run Code Online (Sandbox Code Playgroud)

我有一个mail-config.xml,它在我的web.xml中注册.这里是:

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
        <property name="host" value="10.30.137.190"/>
        <property name="port" value="25"/>
    </bean>

</beans>
Run Code Online (Sandbox Code Playgroud)

我应该能够匿名登录到指定的邮件服务器,因此不需要用户或密码.

我错过了什么?

java spring jakarta-mail

13
推荐指数
1
解决办法
2万
查看次数

变量表达式为javascript而不使用th:inline

我先搜索但是我找到了令人困惑的答案,因为我是Thymeleaf的新手,最好是javascript的业余爱好者.

我只想知道如何将变量表达式传递给javascript函数,就像在JSP中一样:

<a href="#" onclick="javascript:getContactId('${contact.id}');">Button</a>
Run Code Online (Sandbox Code Playgroud)

当然,这与Thymeleaf失败并传递字符串$ {contact.id}而不是其值,所以我怎么能得到变量表达式的值呢?

我之所以这么想是因为它取决于正在迭代的行th:each.

如果除了使用之外没有别的办法th:inline,那么考虑上述陈述,最好的方法是什么?

javascript thymeleaf

11
推荐指数
2
解决办法
3万
查看次数

多个一对多关系ResultSetExtractor

假设我有一个具有两个不同的一对多关系的对象.很像:

Customer 1<->M BrandsCustomer 1<->M Orders

让我们说我的对象Customer有两个与这两个对象相关的列表.

我读过这个例子:http: //forum.springsource.org/showthread.php?50616-rowmapper -with-one-to-many- query,它解释了如何用一对一的关系来做到这一点.为了您的方便,这里是ResultSetExtractor覆盖:

private class MyObjectExtractor implements ResultSetExtractor{

    public Object extractData(ResultSet rs) throws SQLException, DataAccessException {
        Map<Integer, MyObject> map = new HashMap<Integer, MyObject>();
        MyObject myObject = null;
        while (rs.next()) {
            Integer id = rs.getInt("ID);
            myObject = map.get(id);
          if(myObject == null){
              String description = rs,getString("Description");
              myObject = new MyObject(id, description);
              map.put(id, myObject);
          }
      MyFoo foo = new MyFoo(rs.getString("Foo"), rs.getString("Bar"));
      myObject.add(myFoo);
        }
        return new ArrayList<MyObject>(map.values());; …
Run Code Online (Sandbox Code Playgroud)

java spring jdbc spring-jdbc jdbctemplate

8
推荐指数
1
解决办法
2万
查看次数

在git上可以忽略哪些报表服务文件类型?

了一下,几乎所有答案都链接到gitignore存储库网站。但是,经检查,我发现它不会忽略我遇到问题的文件。

有问题的文件是:

  • PROJECTNAME .rds
  • 报告.rptproj.user
  • 报告.rptproj.rsuser
  • .smss_suo

可以安全地忽略以下哪个文件?哪个不是?出于什么原因?

谢谢!

git ignore github gitignore reporting-services

6
推荐指数
1
解决办法
2494
查看次数

将javascript对象数组作为参数发送到控制器

问题非常自我解释.我想通过POST表单发送2个不同的对象数组,而没有ajax到我的控制器.

由于params的大小,我将我的问题改为使用ajax并使用get请求.目前获得400(不良请求).我不知道为什么.请看一下...

我有对象:

var phone = {phoneId:"", phoneNumber:"", phoneType:""};
var schedule = {scheduleId:"", time:"", day:""};
Run Code Online (Sandbox Code Playgroud)

我放入一个javascript数组:

var phones = [phone1, phone2, phone3];
var schedules = [schedule1, schedule2];
Run Code Online (Sandbox Code Playgroud)

我使用ajax发送:

var data = {
    index: id,
    schedules: schedules,
    phones: phones
}
var url = "/myController/myUrl"

$.getJSON(url, data, function(result){
    if(result.ok){
         $('#messageAlertSuccess').show();
    } else {
         $('#messageAlertError').show();    
    }
});
Run Code Online (Sandbox Code Playgroud)

我创建了包装类来映射它们,如下所示:

public class PhoneWrapper(){
    private String phoneId;
    private String phoneNumber;
    private String phoneType;
}
Run Code Online (Sandbox Code Playgroud)

当然,scheduleWrapper遵循相同的约定.

这是我的控制器中的方法:

@ResponseBody
@RequestMapping(value="/myUrl", method=RequestMethod.GET)
public Result doSomething(@RequestParam("index") int index,
                          @RequestParam("phones") Set<PhoneWrapper> …
Run Code Online (Sandbox Code Playgroud)

javascript java spring spring-mvc

5
推荐指数
1
解决办法
8335
查看次数

jpa findAll 上的 NPE 以及规范/谓词

我有以下规范,应该检查 a 是否Magazines在a 下File的列表中:MagazinesSubscription

public static Specification<File> getContainingMagazines(final long subscriptionId){
    return new Specification<File>() {
        @Override
        public Predicate toPredicate(Root<File> root, CriteriaQuery<?> query, CriteriaBuilder cb) {

        Subquery<Subscription> subscriptionSubquery = query.subquery(Subscription.class);
        Root<Subscription> subscriptionRoot = subscriptionSubquery.from(Subscription.class);
        ListJoin<Subscription, Magazine> subscriptionMagazineJoin = subscriptionRoot.join(Subscription_.magazines);

        Path<Long> subscriptionIdPath = subscriptionRoot.get(Subscription_.id);

        subscriptionSubquery.
                select(subscriptionRoot).
                where(cb.equal(subscriptionIdPath, subscriptionId));

        ListJoin<File, Magazine> magazinesJoin = root.join(File_.magazines);

        return cb.and(magazinesJoin.get(Magazine_.id).in(subscriptionMagazineJoin.get(Magazine_.id)));
        }
    };
}
Run Code Online (Sandbox Code Playgroud)

在我的服务中,我正在这样做:

public int findFilesWithSubscription(long subscriptionId) {
        List<File> fileList = fileRepository.findAll(FileSpecs.getContainingMagazines(subscriptionId));
        return fileList.size();
    }
Run Code Online (Sandbox Code Playgroud)

涉及的实体如下:

@Entity
@Table(name = "nim_file")
public …
Run Code Online (Sandbox Code Playgroud)

java hibernate specifications jpa predicate

5
推荐指数
1
解决办法
1552
查看次数

org.hibernate.InstantiationException:无法实例化抽象类或接口

我有以下实体:

@Entity
@Table(name = "davt_compensation_service")
@Inheritance(strategy = InheritanceType.JOINED)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public abstract class Compensation<C extends Compensation> extends AutoIdBasedEntity {
    //properties, setters and getters, equals and hashcode overrides.
}
Run Code Online (Sandbox Code Playgroud)

其余的继承自它(例如其中之一):

@Entity
@Table(name = "davt_compensation_service_relocation")
public class RelocationCompensation extends Compensation<RelocationCompensation> {
    //properties, setters and getters, equals and hashcode overrides
}
Run Code Online (Sandbox Code Playgroud)

包含以下集合的父实体Compensations

@Entity
@Table(name = "davt_compensation_case")
@EntityListeners({CompensationCaseNumberListener.class})
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class CompensationCase extends AutoIdBasedEntity {

    @Valid
    @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "compensationCase", orphanRemoval = true)
    @MapKey(name = "conceptType") …
Run Code Online (Sandbox Code Playgroud)

java inheritance hibernate jpa

5
推荐指数
1
解决办法
1万
查看次数

测试 DAO 时出错:sun.reflect.generics.reflectiveObjects.TypeVariableImpl 不能转换为 java.lang.Class

我对 Spring + Hibernate 非常陌生,我正在运行测试以查看我的 DAO 是否正常工作。我收到以下错误,在 Google 中搜索时会产生很多不同的答案(主要是我检查过的错别字)。我希望你能帮我解决这个问题:

java.lang.IllegalStateException: Failed to load ApplicationContext
        at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
        at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
        at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
        at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nominationDao' defined in file [C:\IdeaProjects\Projects\branch\dev\test-dataacess\target\classes\com\dev\test\data\dao\hibernate\NominationHibernateDAO.class]: …
Run Code Online (Sandbox Code Playgroud)

java spring dao hibernate hibernate-mapping

4
推荐指数
1
解决办法
9367
查看次数

一个实体可以有多个多对多关系吗?

我有一个表与两个不同的表有两个不同的多对多关系.假设我有User<---> UserRole< - > RoleUser< - > UserGroups< - > Groups.由于我是hibernate和数据库映射的新手,我想知道是否让我的User实体在其中有属性角色和组,两者都带有@ManytoMany注释是好的做法并且可以接受吗?

即:

 @Entity(name = "User")
 @Table(name = "USER")
 public class User {

 .... /* Obviously Id would go here and all other attributes */

 @ManyToMany(cascade = CascadeType.ALL)
 @JoinTable(name = "UserRole", joinColumns = { @JoinColumn(name="USER_ID") },
            inverseJoinColumns = { @JoinColumn(name = "ROLE_ID") } )
 private Set<Role> roles = new HashSet<Role>();

 @ManyToMany(cascade = CascadeType.ALL)
 @JoinTable(name = "UserGroup", joinColumns = { …
Run Code Online (Sandbox Code Playgroud)

java sql entity hibernate

3
推荐指数
1
解决办法
201
查看次数

java.lang.AssertionError和两个实体是一样的吗?什么可能导致这个?

使用Assert.AssertEquals()方法测试DAO时出现以下错误:

java.lang.AssertionError: expected: com.develop.test.data.entity.Rpoint<com.develop.test.data.entity.Rpoint@7668e5b5> but was: com.develop.test.data.entity.Rpoint<com.develop.test.data.entity.Rpoint@7668e5b5>
at org.junit.Assert.fail(Assert.java:91)
at org.junit.Assert.failNotEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:126)
at org.junit.Assert.assertEquals(Assert.java:145)
at com.develop.test.data.dao.RpointDAOTest.testFindById(RpointDAOTest.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:71)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Run Code Online (Sandbox Code Playgroud)

这是片段:

@Test
@Transactional(isolation …
Run Code Online (Sandbox Code Playgroud)

java spring annotations hibernate hibernate-annotations

2
推荐指数
1
解决办法
4774
查看次数

实体继承和鉴别器列

我正在尝试测试一些 DAO。

我有实体(和表)命名Nomination,它有一些属性:

@Entity(name = "Nomination")
@Table(name = "NOMINATION")
@DiscriminatorColumn(name="CATEGORY_CODE", discriminatorType = DiscriminatorType.STRING, length = 1)

public class Nomination extends AuditableEntity {

@Id
@Column(name = "NOM_ID", insertable = true, updatable = true,
        nullable = false)
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;

@Transient
protected NominationType type = null;

@ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinColumn(name = "PERIOD_ID", referencedColumnName = "PERIOD_ID")
@Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE,
        org.hibernate.annotations.CascadeType.MERGE})
private NomPeriod period = null;

@ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE})
@JoinColumn(name = "CATEGORY_CODE", referencedColumnName …
Run Code Online (Sandbox Code Playgroud)

java spring hibernate hibernate-annotations

1
推荐指数
1
解决办法
4504
查看次数

未捕获的TypeError:对象[object Object]没有方法'jqEasyCounter'

所以我已经阅读了其中的几个错误,显然是因为人们没有正确链接到脚本,但我认为我的链接很好.

这是片段:

在default.js中(为了减少混乱)我还试过把它放在带有脚本标签的HTML上.

//character counters
$(document).ready(function(){
    $('.count1').jqEasyCounter({  //Error here: default.js:147 Uncaught TypeError: Object [object Object] has no method 'jqEasyCounter'
        'maxChars': 500,
        'maxCharsWarning': 50,
        'msgFontSize': '10px',
        'msgFontColor': '#F00',
        'msgFontFamily': 'Arial',
        'msgWarningColor': '#000'
    });
});
Run Code Online (Sandbox Code Playgroud)

和参考:

<script language="javascript" type="text/javascript" src="scripts/jquery.jqEasyCharCounter.js"></script>
<script language="javascript" type="text/javascript" src="scripts/default.js"></script>
<script language="javascript" type="text/javascript" src="scripts/history.js"></script>

<meta http-equiv="CACHE-CONTROL" content="NO-CACHE"/>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>

<!-- jQuery -->
<script language="javascript" type="text/javascript"
            src="scripts/jquery-1.7.1.min.js"></script>
 <!-- jQuery UI -->
 <script language="javascript" type="text/javascript"
            src="scripts/jquery-ui-1.8.18.custom.min.js"></script>
 <!-- jQuery UI CSS -->
 <link rel="stylesheet" type="text/css" …
Run Code Online (Sandbox Code Playgroud)

html javascript jquery

1
推荐指数
1
解决办法
1197
查看次数