当我运行项目时,Chrome中出现以下错误:

如何解决此问题并进入安装页面?
我正在使用jquery flot图表来表示我的数据.这里的例子的jsfiddle我做了显示图表所需的JSONS的应该是什么样子.
数据源来自具有以下输出示例的MySql存储过程:

我需要在图表中表示count为innumbery轴上的不同值堆叠的name值,x轴上的值,以及另一个图表中的值outnumber.(在堆积的条形图中).
- 数据系列应该匹配,因此特定标签应该针对客户.
这是我到目前为止的PHP:
$query = $this->db->query("call GetAllCustomersV2($id, $year, $month, $day)");
$customers = $query->result_array();
foreach ($customers as $customer) {
if($customer['innumber'] != null){
$chartInbound['name'] = $customer['name'];
$chartInbound['label'] = $customer['innumber'];
$chartInbound['count'] = $customer['count'];
$chartInbound['customerid'] = $customer['id'];
array_push($out['chartInbound'], $chartInbound);
}
if($customer['outnumber'] != null){
$chartOutbound['name'] = $customer['name'];
$chartOutbound['label'] = $customer['outnumber'];
$chartOutbound['count'] = $customer['count'];
$chartOutbound['customerid'] = $customer['id'];
array_push($out['chartOutbound'], $chartOutbound);
}
}
Run Code Online (Sandbox Code Playgroud)
输出print_r($out['chartInbound']);是:
Array
(
[0] => Array
( …Run Code Online (Sandbox Code Playgroud) 有没有办法找到在程序包管理器控制台中编写的命令,比如历史记录,用于我的特定项目?
程序首先要求用户输入要存储在数组中的元素数量,然后询问数字.
这是我的代码
static void Main(string[] args)
{
Console.Write("How many numbers do you want to store in array: ");
int n = Convert.ToInt32(Console.ReadLine());
int[] numbers = new int[n];
int min = numbers[0];
int max = numbers[0];
for (int i = 0; i < n; i++)
{
Console.Write("Enter number {0}: ", i+1);
numbers[i] = Convert.ToInt32(Console.ReadLine());
}
for (int i = 0; i < n; i++)
{
if (min > numbers[i]) min = numbers[i];
if (max < numbers[i]) max = numbers[i];
}
Console.WriteLine("The …Run Code Online (Sandbox Code Playgroud) 这是虚拟数据,它是一个调用记录数据表.
这是它的一瞥:
| call_id | customer | company | call_start |
|-----------|--------------|-------------|---------------------|
|1411482360 | 001143792042 | 08444599175 | 2014-07-31 13:55:03 |
|1476992122 | 001143792042 | 08441713191 | 2014-07-31 14:05:10 |
Run Code Online (Sandbox Code Playgroud)
在customer和company领域代表了他们的电话号码.
编辑:
- 客户A致电公司
A.-如果客户A致电公司B,则公司B将获得+1收益,而公司A将失去+1.
- 如果客户A致电公司C,则公司C将获得+1收益,而公司B将失去+1.
- 如果客户A再次致电公司C,则溢出/收益不会受到影响.
- 只有在客户A第二次拨打电话后,收益/损失才会发挥作用.
- 如果客户按此顺序呼叫公司:A,B,B,C,A,A,C,B,D过程应该是这样的:
A ->
B -> B +1 gain, A +1 lost
B ->
C -> C +1 gain, B +1 lost
A -> A +1 gain, C …Run Code Online (Sandbox Code Playgroud) 带有数据绑定的表目前如下所示:
Source Calls ChargeableCalls
Car Insurance
08434599111 3 2
08934345122 2 1
Home Insurance
08734599333 3 2
08034345555 2 1
Run Code Online (Sandbox Code Playgroud)
所述期望的输出应该像在波纹管例如,该表应包含总值Calls和ChargeableCalls由司,和总的值对于所有分组Calls和ChargeableCalls在表格内.
Source Calls ChargeableCalls
Car Insurance
08434599154 3 2
08934345555 2 1
Total Calls 5 Total CC 3
Home Insurance
08434599154 6 3
08934345555 1 0
Total Calls 7 Total CC 3
Total Calls All 24 Total CC All 12
Run Code Online (Sandbox Code Playgroud)
以下是表格中的绑定:
<table class="table table-condensed" id="reportData">
<thead>
<tr>
<th>Source</th>
<th>TotalCalls</th>
<th>ChargeableCalls</th> …Run Code Online (Sandbox Code Playgroud) 我正在使用 C#/.NET库来实现Asterisk RESTful 接口 (ARI)来创建电话会议应用程序。
到目前为止,该应用程序的工作方式如下:
要求:
在将用户添加到会议之前,我需要在上述过程中添加某种授权。我需要实现要求输入 PIN 码的功能,创建一个 PIN 码结构,如果来电者输入正确的 PIN 码,则将来电者添加到正确的电话会议中。
编码:
会议:
public Conference( AriClient c, Guid id, string name)
{
_client = c;
Id = id;
ConferenceName = name;
State = ConferenceState.Destroyed;
c.OnChannelDtmfReceivedEvent += c_OnChannelDtmfReceivedEvent; // ??
c.OnBridgeCreatedEvent += c_OnBridgeCreatedEvent;
c.OnChannelEnteredBridgeEvent += c_OnChannelEnteredBridgeEvent;
c.OnBridgeDestroyedEvent += c_OnBridgeDestroyedEvent;
c.OnChannelLeftBridgeEvent += c_OnChannelLeftBridgeEvent;
c.OnRecordingFinishedEvent += c_OnRecordingFinishedEvent;
// Added support for talk detection
c.OnChannelTalkingStartedEvent += c_OnChannelTalkingStartedEvent;
c.OnChannelTalkingFinishedEvent += c_OnChannelTalkingFinishedEvent; …Run Code Online (Sandbox Code Playgroud) 我组成了一个JSFiddle.
这是一个登录表单,在鼠标悬停登录菜单时出现,但当悬停输入自动完成时,登录表单消失,我不希望这样.
如何在不禁用输入自动完成的情况下保持登录表单,只能使用css进行此操作?
<div class="login"> <span>Sign in</span>
<div class="login_form">
<label for="email">Email:</label>
<input type="text" id="email" name="email" value="" />
<label for="pass">Password:</label>
<input type="password" id="pass" name="pass" value="" />
<input type="submit" class="" value="Sign in" />
</div>
</div>
.login {
position: relative;
height:60px;
width:50px;
margin:30px;
}
.login:hover .login_form {
display: block;
}
.login_form {
box-shadow: 0 0 1px;
padding:10px;
position: absolute;
left: 0px;
top: 30px;
z-index: 9999;
display: none;
}
Run Code Online (Sandbox Code Playgroud) @foreach (var item in Model.Content.Children.Where("Visible"))
{
<a title="@item.Name" href="@item.Url">@item.Name</a>
}
Run Code Online (Sandbox Code Playgroud)
这不会给出我需要的结果.
问:如何从当前页面获取所有兄弟页面?
我想将值为 1 的下拉选项文本的颜色设置为红色。
我的 HTML 下拉列表:
<select name="ctl00$MainContent$TelephoneDD" id="MainContent_TelephoneDD" class="form-control">
<option value="">Select</option>
<option value="1">33534543534</option>
<option value="1">78678678678</option>
<option value="0">99923444445</option>
</select>
Run Code Online (Sandbox Code Playgroud)
CSS:
<select name="ctl00$MainContent$TelephoneDD" id="MainContent_TelephoneDD" class="form-control">
<option value="">Select</option>
<option value="1">33534543534</option>
<option value="1">78678678678</option>
<option value="0">99923444445</option>
</select>
Run Code Online (Sandbox Code Playgroud)
这适用于大多数浏览器,除了 Mac OS X 下的 Chrome 和 Safari。
问:如果选项值为 1,如何在 Mac OS X 下的 Chrome 中使用下拉选项文本颜色为红色?
这是我的jsFiddle
如何删除边框或与条形图相同(不是更暗)?
编辑:实际上,我需要完全删除边框.这可能吗?
var chartOptions = {
xaxis: { ticks: chartTicks },
grid: { clickable: true, hoverable: true },
series: { stack: true, bars: { fill: '#000', show: true, align:'center', barWidth: 0.5 } }
};
Run Code Online (Sandbox Code Playgroud) 我想从循环遍历Json对象(结果)的$ .each()函数动态填充#city div的内容.如何将对象中的所有元素放入#city div中?
在这种情况下创建和替换html元素的最佳方法是什么?(从每个功能)
我的代码:
<div id="city"></div>
Run Code Online (Sandbox Code Playgroud)
$.ajax({
url: "/Home/GetCity",
type: "GET",
data: { county: County}
})
.done(function (result) {
$.each(result, function (index, value) {
console.log(this.CityName); //here it returns all the elements
$('#city').html("<h4>" + this.CityName+ "</h4>"); //here it return only the first one
});
});
Run Code Online (Sandbox Code Playgroud) javascript ×4
html ×3
asp.net ×2
asp.net-mvc ×2
c# ×2
css ×2
flot ×2
jquery ×2
json ×2
mysql ×2
umbraco ×2
umbraco7 ×2
ajax ×1
asterisk ×1
autocomplete ×1
database ×1
each ×1
knockout-2.0 ×1
knockout.js ×1
macos ×1
nuget ×1
php ×1
rest ×1
sql ×1
websocket ×1