我有这段代码:
$(document).ready(function () {
    $.getJSON('http://localhost:5000/', function (response) {
        console.log(response);
    });
});
Run Code Online (Sandbox Code Playgroud)
localhost:5000是一个flask/python返回json类似的脚本:
{
  "data": [
    0, 
    0, 
    0, 
Run Code Online (Sandbox Code Playgroud)
我得到了:
$.getJSON is not a function TypeError: $.getJSON is not a function
Run Code Online (Sandbox Code Playgroud)
我可以开始解开whoolball的任何提示吗?
谢谢!
编辑:
HTML:
<!DOCTYPE html>
<html>
<head>
    <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
    <script src="lib/main.js"></script>
</head>
<body>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
lib/main.js是它的document.ready位置.
谢谢!
我试图trigger在插入,更新或删除数据后每次创建一个.插入的触发器工作正常但我在更新和删除时遇到了一些问题.这是After Insert触发器:
CREATE TRIGGER trgAfterInsert ON  [DR].[dbo].[Derived_Values]
FOR INSERT
AS  
    insert into [Main].[dbo].[Derived_Values_Test]
           (BusinessUnit,Questions, Answer) 
    SELECT BusinessUnit,Questions, Answer
    FROM inserted;
Run Code Online (Sandbox Code Playgroud)
这是我为更新所做的,但似乎错了,
CREATE TRIGGER trgAfterUpdate ON  [DR].[dbo].[Derived_Values]
FOR UPDATE
AS  
Update [Main].[dbo].[Derived_Values_Test]
set BusinessUnit = 'Updated Record -- After Update Trigger.'; 
GO
Run Code Online (Sandbox Code Playgroud)
如何创建更新和删除触发器?谢谢.
在java中我需要显示'程序启动的时间'
它必须在String.
如何获取当前时间,然后将其转换为String?
我想打电话给一个名为函数characterSelection(SDL_Surface *screen, struct SelectionneNonSelectionne sel)返回一个void
这是.h我试图调用的函数:
struct SelectionneNonSelectionne;
void characterSelection(SDL_Surface *screen, struct SelectionneNonSelectionne);
void resetSelection(SDL_Surface *screen, struct SelectionneNonSelectionne);
Run Code Online (Sandbox Code Playgroud)
在我的主要功能上,我试着像这样调用它:
characterSelection(screen, SelectionneNonSelectionne);
Run Code Online (Sandbox Code Playgroud)
编译时,我收到消息:
 error: expected primary-expression before ')' token
Run Code Online (Sandbox Code Playgroud)
我做了includes.我想我错误地呼了第二个论点,我的struct.但是,我无法在网上找到原因.
你知道我做错了什么吗?
出于某些原因,我将此文件夹:( Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL)移动到另一个驱动器,然后将其返回到同一位置,但sql server已停止工作,在尝试再次启动时显示此错误:
Windows无法在本地计算机上启动SQL Server(MSSQLSERVER).有关更多信息,请查看系统事件日志.如果这是非Microsoft服务,请与服务供应商联系,并参阅特定于服务的错误代码3417.
我尝试了在不同论坛中讨论的许多解决方案,但它们都不适用于我.
该文件夹未压缩或加密.
My sql server version is 2012:
Microsoft SQL Server Management Studio      11.0.3128.0
Microsoft Analysis Services Client Tools    11.0.3128.0
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML             3.0 4.0 6.0 
Microsoft Internet Explorer         9.0.8112.16421
Microsoft .NET Framework            4.0.30319.18047
Operating System                6.1.7601
Run Code Online (Sandbox Code Playgroud)
感谢您的帮助.
Select /*+USE_HASH( a b ) */ to_char(date, 'MM/DD/YYYY HH24:MI:SS') as LABEL,
ltrim(rtrim(substr(oled, 9, 16))) as VALUE,
from rrfh a, rrf b,
where ltrim(rtrim(substr(oled, 1, 9))) = 'stata kish' 
and a.xyz = b.xyz 
Run Code Online (Sandbox Code Playgroud)
以上查询的"from"(第3行)部分给了我ORA-00936 Missing EXPRESSION error.请帮我
注意 :: rrfh表不包含任何数据.
我很难将导航栏居中放在此页面上.
我尝试nav { margin: 0 auto; }了一些其他的方法,但我仍然无法集中它.
嗨,这是一个jquery问题:
我以为我有这个:
<input type="checkbox" class="select" id ="select-1">
<input type="checkbox" class="select" id ="select-2">
Run Code Online (Sandbox Code Playgroud)
我想获取当我点击提交按钮时选中的复选框的ID(注意:你只能选择1),我在这里点击此按钮事件:
$("#submit").click(function(){
          if($(".select").is(':checked')){
              alert($(".select").attr('id'));
          }
});
Run Code Online (Sandbox Code Playgroud)
即使我选择带有"select-2"id的复选框,它总是会发出"select-1"警告.我猜是因为他们都在同一个班级中,第一个找到了".select"类警报中显示..如何获取使用其类名检查的特定ID?谢谢!
我使用SQL开发人员列表创建了一个包含1000个条目的数据库并成功创建.连接也成功了.但今天我正在尝试连接时发生错误:
IO Error: The Network Adapter could not establish the connection in SQL developer
Run Code Online (Sandbox Code Playgroud)
我可以肯定地说它没有连接我也尝试了它Command prompt在提示它提到协议适配器错误.
这里有什么问题?
协议适配器错误是什么意思我如何克服它?
什么是网络适配器错误?