将jQuery DataTable添加到Asp.NET MVC 4项目中(Add jQuery DataTable to Asp.NET MVC 4 project)
我想在我的mvc4网站上添加jQuery DataTable( http://www.datatables.net/ )。 但它不起作用。 在添加脚本之前没有显示任何内容,表格看起来像。
FireBug显示错误:
TypeError:$(...)。dataTable不是函数
**Admin_panel.cshtml** @model IEnumerable<Rejestracja_imprez.Models.User> @{ Layout = "~/Views/Shared/_PanelAdmin.cshtml"; ViewBag.Title = "Admin"; } <script src="~/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script> <script src="~/Scripts/jquery.dataTables.js" type="text/javascript"></script> <link href="~/Content/themes/base/jquery.dataTables.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> $(document).ready(function () { $('#myDataTable').dataTable(); }); </script> <table id="myDataTable"> ....
在HTML页面,它的工作正常。
<html> <head> <style type="text/css" title="currentStyle"> @import "../../media/css/jquery.dataTables.css"; </style> <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#example').dataTable(); } ); </script> </head> <body > <table id="example" > ...
I want add jQuery DataTable (http://www.datatables.net/) to my mvc4 site. But it's doesn't work. Doesn't show anything, table look like before adding script.
FireBug show an error:
TypeError: $(...).dataTable is not a function
**Admin_panel.cshtml** @model IEnumerable<Rejestracja_imprez.Models.User> @{ Layout = "~/Views/Shared/_PanelAdmin.cshtml"; ViewBag.Title = "Admin"; } <script src="~/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script> <script src="~/Scripts/jquery.dataTables.js" type="text/javascript"></script> <link href="~/Content/themes/base/jquery.dataTables.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> $(document).ready(function () { $('#myDataTable').dataTable(); }); </script> <table id="myDataTable"> ....
In html page it's work good.
<html> <head> <style type="text/css" title="currentStyle"> @import "../../media/css/jquery.dataTables.css"; </style> <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script> <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#example').dataTable(); } ); </script> </head> <body > <table id="example" > ...
原文:
最满意答案
您的意思是将所有单个样本作为文本获取吗? SoX可以做到这一点。
$ sox file.wav file.dat
将获取音频文件
file.wav
,并生成一个文本文件file.dat
其中包含时基列(以秒为单位),以及每个音频通道的列,该列按最大可能值进行缩放。Do you mean getting all the individual samples as text? SoX can do that.
$ sox file.wav file.dat
will take an audio file
file.wav
, and generate a text filefile.dat
with a column for the timebase in seconds, and a column for each audio channel scaled by the maximum possible value.
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
如果您有一个要在MergeList.txt合并的文件列表,它看起来像这样: fileRandomID1.wav fileRandomID2.wav fileRandomID3.wav 你可以做: sox -m $(cat MergeList.txt) output.wav If you have a list of the files that you want merged in MergeList.txt and it looks like this: fileRandomID1.wav fileR ...
-
您可以使用AVFoundation轻松地从现有样本中创建更长的声音,即AVMutableComposition类。 但根据您的应用程序的用途,背景音频播放应该有所不同。 播放音频只是为了让您的应用在后台运行会在评论时拒绝您的应用。 You can easily compose longer sounds from existing samples using AVFoundation, namely the AVMutableComposition class. But be vary that the b ...
-
我甚至无法弄清楚如何在当前播放结束后自动播放新的音频文件 您必须实施Amazon Audio Player方法。 这些操作将被自动调用。 例如,如果播放结束,则会调用onPlaybackNearlyFinished()方法。 所以你必须在这些方法中实现你自己的逻辑,以排队你的下一首歌。 对于下一首歌曲,只需添加一个新的PlayDirectiv作为对PlayBehavior.ENQUEUE的onPlaybackNearlyFinished的响应。 ,或者当我说“Alexa,下一个”。 这是一个常规的AMAZO ...
-
如果你允许gstreamer,这里有一个小脚本可以做到这一点。 它接受gstreamer可以处理的任何音频文件。 构造一个gstreamer管道,使用audioconvert将通道减少到1,并使用水平模块获得峰值 运行管道直到EOS被击中 从找到的最小值/最大值标准化峰值。 片段: import os, sys, pygst pygst.require('0.10') import gst, gobject gobject.threads_init() def get_peaks(filename): ...
-
你需要知道音频文本以及你想要的mp3 /格式文件。 我会用一个MYSQL数据库和文本和音频文件作为数据库中的条目。 audioText = "sample audio" $("#translate").on("keyup",function () { if ($(this).val() == audioText) { $(this).css("border","2px solid green") } else { $(this).css("border","2px solid red" ...
-
如何使用Jquery获取音频文件的当前持续时间[关闭](How to get current duration of audio file using Jquery [closed])[2023-06-15]
我不明白你到底想要做什么,但你可以看看这个好东西的例子。 http://jsfiddle.net/trixta/VvmmC/ i I don't understand what exactly are You trying to do, but You can take a look at this nice example of everything. http://jsfiddle.net/trixta/VvmmC/ i -
首先,当你谈到频谱时,你指的是音频信号的频率成分,这与振幅非常不同。 无论如何,如果你想绘制一段时间的振幅,那么x轴将是y轴的振幅。 这里的关键值是采样率 ,它定义了您每秒记录多少个采样; 您需要确定您想要在屏幕上绘制平均幅度值的多少次(相对于采样率),然后...只需绘制它。 我建议你从一些简单的事情开始,比如三星官方文档中的以下例子: AudioRecord recorder; // our recorder, must be initialized first short[] buffer; // bu ...
-
您的意思是将所有单个样本作为文本获取吗? SoX可以做到这一点。 $ sox file.wav file.dat 将获取音频文件file.wav ,并生成一个文本文件file.dat其中包含时基列(以秒为单位),以及每个音频通道的列,该列按最大可能值进行缩放。 Do you mean getting all the individual samples as text? SoX can do that. $ sox file.wav file.dat will take an audio file fi ...