小编Yaz*_*Yaz的帖子

错误:无法加载程序包"Microsoft SQL Management Studio程序包".在SQL Server Management Studio中

我安装了SQL Server 2008 R2,安装成功了.但我无法打开Management Studio,因为显示以下错误:

Package 'Microsoft SQL Management Studio Package' failed to load.
Run Code Online (Sandbox Code Playgroud)

任何的想法?谢谢.

在此输入图像描述

sql-server ssms sql-server-2008

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

这个错误消息"insertId:Error:INVALID_ACCESS_ERR:DOM Exception 15"的含义是什么?

我正在使用jquery mobile,phonegap和openDatabase开发一个应用程序.当应用程序执行时,我可以在Safari浏览器的控制台中看到带有以下消息的SQLResultSet:

insertId: Error: INVALID_ACCESS_ERR: DOM Exception 15. 
Run Code Online (Sandbox Code Playgroud)

但是,我的应用程序正常工作.但我不明白为什么会显示这条消息.

请帮我.

jquery mobile-safari cordova

8
推荐指数
3
解决办法
5725
查看次数

jquery mobile中的Datepicker在第二页中添加时是重复的

我在移动应用程序中使用datepicker需要一些帮助.

我在我的应用程序中使用jQuery UI datepicker.但是当我把它放在第二页时,datepicker显示两次(重复).但是,当我将datepicker放在第一页时,显示确定.

这是一个示例,如果您运行它,您可以看到日期选择器在第二页中是重复的.

<!DOCTYPE html> 
<html> 
<head> 
    <title>Datepicker Test</title> 
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css"/>
    <link rel="stylesheet" href="http://jquerymobile.com/demos/1.0a3/experiments/ui-datepicker/jquery.ui.datepicker.mobile.css" />
    <script src="http://code.jquery.com/jquery-1.5.min.js"></script>
    <script src="http://jquerymobile.com/demos/1.0a3/experiments/ui-datepicker/jQuery.ui.datepicker.js"></script>
    <script src="http://jquerymobile.com/demos/1.0a3/experiments/ui-datepicker/jquery.ui.datepicker.mobile.js"></script>
    <script src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
</head> 
<body> 

<!-- Start of first page -->
<div data-role="page" id="firstPage">
    <div data-role="header">
        <h1>First page</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <p><a href="#secondPage">Next page with a Datepicker</a></p>    

    </div><!-- /content -->

    <div data-role="footer">
        <h4>Page Footer</h4>
    </div><!-- /footer -->

</div><!-- /page -->

<!-- Start of second page -->
<div data-role="page" id="secondPage">
    <div data-role="header">
        <h1>Second page</h1>
    </div><!-- /header …
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui datepicker jquery-mobile jquery-ui-datepicker

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

如何在javascript事件处理程序中获取对象?

我试图在onclick事件处理函数中获取一个对象.

但它并没有像我期望的那样发挥作用.

例如,如果我运行此代码:

var entries = [{id: 1},{id: 2},{id: 3}];

for (var i = 0; i < entries.length; i++) {

    var entry = entries[i];

    document.getElementById(entry.id).onclick = function () { 
        console.log("this.id: " + this.id);
        console.log("entry.id: " + entry.id);
    };

}
Run Code Online (Sandbox Code Playgroud)

我的期望是:

this.id: 1
entry.id: 1

this.id: 2
entry.id: 2

this.id: 3
entry.id: 3
Run Code Online (Sandbox Code Playgroud)

但我得到的是:

this.id: 1
entry.id: 3

this.id: 2
entry.id: 3

this.id: 3
entry.id: 3
Run Code Online (Sandbox Code Playgroud)

为什么条目对象始终是id为3的条目?

如何在click事件处理程序中获取正确的条目对象?

javascript closures event-handling

5
推荐指数
2
解决办法
1365
查看次数