RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-228220

Nevega's questions

Martin Hope
Nevega
Asked: 2020-11-25 00:41:52 +0000 UTC

启动安卓模拟器时出错

  • 0

我整天都在努力赢球。

构建结束如下: 1>----- 构建开始:项目:App17,配置:调试任何 CPU ------ 1>App17 -> C:\Users\rupar\source\repos\App17\App17 \ App17\bin\Debug\netstandard2.0\App17.dll 2>----- 构建开始:项目:App17.Android,配置:调试任何 CPU ------ 2> App17.Android -> C : \Users\rupar\source\repos\App17\App17\App17.Android\bin\Debug\App17.Android.dll 2> 无法解决“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”之间的冲突和“mscorlib,版本=2.0.5.0,文化=中性,PublicKeyToken=7cec85d7bea7798e”。任意选择“mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”。========== 构建:成功:2,错误:0,无更改:0,跳过:0 ==========

当我启动模拟器时,我得到 1>Waiting for runtime checks to completeStarting runtime checks

Android_Accelerated_x86_Oreo 模拟器正在启动... H:\Android\android-sdk\emulator\emulator.EXE -partition-size 512 -no-boot-anim -no-accel -avd Android_Accelerated_x86_Oreo -prop monodroid.avdname=Android_Accelerated_x86_Oreo 无法启动 Android_Accelerated_x86_Oreo 模拟器. 运行时检查已完成 构建已取消。

日志显示此垃圾
Xamarin.VisualStudio.Android.AndroidSupportMismatchProvider|Warning|0|Failed to load package metadata from xamarin.android.support.annotations.nuspec to detection API level mismatch for reference Xamarin.Android.Support.Annotations.dll。System.NullReferenceException:对象引用未指向对象的实例。在 Xamarin.VisualStudio.Android.AndroidSupportMismatchProvider.DetectMismatch(字符串 projectGuid,字符串 templateGuid,字符串 frameworkVersion,字符串 referencePath)在 E:\A_work\21\s\src\Core\VisualStudio.Android\Telemetry\AndroidSupportMismatchProvider.cs:line 135

xamarin
  • 1 个回答
  • 10 Views
Martin Hope
Nevega
Asked: 2020-10-21 05:50:00 +0000 UTC

从服务更新不同组件中的数据

  • 0

有 2 个组件 A 和 B,以及一个具有“获取数据”和“更新数据”两个功能的服务在数据库中。两个组件都使用数据模型,服务注册在公共模块中。更新数据库中的数据后如何在两个组件中获取更新的模型。? 那些。如何强制完成接收数据的功能?

angular5
  • 1 个回答
  • 10 Views
Martin Hope
Nevega
Asked: 2020-10-05 04:54:20 +0000 UTC

Linq 过滤结果

  • 0

我在查询数据库时遇到了问题

public class LinkTabProductCategory
{
    [Key]
    public int Id { get; set; }

    public int ProductId { get; set; }
    [JsonIgnore]
    public Product Product { get; set; }

    public int CatalogSubSectionId { get; set; }
    public CatalogSubSection CatalogSubSection { get; set; }
}

var result = DataContext.Product                    
                .Include(o => o.Offers)
                        .ThenInclude(p => p.Prices)
                            .ThenInclude(t => t.Type)
                .Include(p => p.Brand)
                .Include(tb=>tb.LinkTabProductCategories)
                .Where( p=>p.LinkTabProductCategories **???** == id)
                .ToList();

并且您需要过滤,只获取那些与LinkTabProductCategories字段CatalogSubSectionId 等于给定变量的表记录有连接的对象Id。

我也将非常感谢有关文档(或类似文档)的提示,Linq除了,MSDN分别。

谢谢

c#
  • 1 个回答
  • 10 Views
Martin Hope
Nevega
Asked: 2020-04-06 20:30:22 +0000 UTC

Angular2如何显示模态窗口?

  • 0

你好。一般是 Angular 和 JS 的新手。

所以。有清晰的用户界面。此页面组件中调用方法的支持者上的按钮:

changeQty(restQty: number, uidItem: string)
  {    
    this.itemQtyUpdateService.updateItemQty(uidItem, restQty)
      .subscribe(
      (item: Item[]) => {
      this.item = item;
     //  тут  вызываем модальное окно
}

当该服务完成后,您需要打开一个模块窗口,其中包含来自该方法的“项目”对象的数据。

在徒劳的尝试中,该指令被创建:

import { Directive } from '@angular/core';
import { ElementRef } from '@angular/core/';
import { OnInit } from '@angular/core/';

@Directive({
  selector: '[appModal]'
})
export class ModalDirective implements OnInit { 

  constructor(private element: ElementRef) { }

  ngOnInit(): void {
    console.log(this.element);
    this.element.nativeElement.clrModalOpen = 'opened';
  }

  showModal() {
    this.element.nativeElement.clrModalOpen = 'true';
    console.log(this.element);
  }
}

在其中创建了 showModal () 方法,在我看来,它将“clrModalOpen”元素属性的值更改为激活窗口。这是 Clarity ui 包中的模态窗口代码:

<clr-modal appModal  [(clrModalOpen)]="opend" [clrModalClosable]="false">
  <h3 class="modal-title">No "x" in the top-right corner</h3>
  <div class="modal-body">
    <p> Для </p>
    <p> По заказу </p>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-primary" (click)="opened = false">
      Я все правильно положил!
    </button>
  </div>
</clr-modal>

此代码位于应调用它的 HTML 页面的末尾。


我从以下逻辑着手:我在 html 代码中创建一个元素 - 我将指令绑定到它 - 在指令中我创建更改其状态的方法 - 我根据需要从主组件调用指令的方法。

我究竟做错了什么 ?

angular4
  • 2 个回答
  • 10 Views
Martin Hope
Nevega
Asked: 2020-11-18 16:05:48 +0000 UTC

当您单击该按钮时,所有模态窗口都会立即打开(

  • 2

这是代码,我们生成行,在最后一个单元格的 4 个单元格的行中有一个调用模式窗口的按钮,当您单击它时,所有内容都会立即打开..

    for ($l = 0; $l < $countResQuote; $l++){
           ?>
        <div class="container-fluid">
        <div class="row">
        <div class="col-xs-3"><?php print_r($goodsList[$l][5]); ?> </div>  
        <div class="col-xs-4"><?php print_r($goodsList[$l][6]); ?> </div>  
        <div class="col-xs-3"><?php print_r($goodsList[$l][7]); ?> </div> 
        <div class="col-xs-2">
               <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-modal"><?php print_r($goodsList[$l][5]); ?></button>

                 </div>
            </div>                       

         </div>     

    <div class="modal fade bs-modal" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">

         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h1><?php print_r($goodsList[$l][5]); ?></h1>
        <h4 class="modal-title"><?php print_r($goodsList[$l][6]); ?></h4>
      </div>

       <div class="modal-body">
        <h2><?php print_r($goodsList[$l][7]); ?></h2>
       </div>

       <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
javascript
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5