-
1 votes2 answers445 views
更改移动设备的HTML5视频源
应该是一个容易回答的人希望,我正在制作的网站有我不想在手机上加载的视频 . 想知道是否有办法将小于800px宽度的屏幕的每个视频的来源更改为1kb的视频,但在桌面上它会播放完整的视频, 我不打算降低移动用户的质量,移动用户根本不会看到视频,因为它们被图像替换以节省数据 . 我想阻止视频在移动用户的后台加载,因为我不希望他们下载未包含在他们的网站版本中的视频,如果我无法阻止它们加载到800px以下那... -
0 votes1 answers1084 views
安装后Magento 2无效的模板异常
我今天在我的localhost上安装了Magento 2.0平台 . 完成所有设置和安装后,当我尝试打开管理面板时,它显示一个棕色的空白屏幕 . 当我切换到开发人员模式时,它显示require_js.phtml的模板错误无效 . 完整的错误是: 1 exception(s): Exception #0 (Magento\Framework\Exception\ValidatorException)... -
0 votes1 answers1412 views
如何填写XFA pdf文档的单个字段?
我的Pdf包含一个带空字段的XFA表单 . 我尝试通过操作XML然后将SetXfa()应用于ITextSharp来填充它,但PDF不会更改 . 这是我的方法: static void EditFieldXFA(string path, string key, string value) { iTextSharp.text.pdf.PdfReader reader = new iTextSh... -
0 votes1 answers1718 views
Sailsjs模型不断删除我的表格内容
我使用两个DB都是mysql . 默认值是存储应用数据 . 第二个是从我构建的另一个应用程序(PHP)中读取先前输入的数据 . 我的config.models.migrate设置为'alter' . 我的模型读取数据已经迁移:'安全' . 在我看来,我的模型的迁移应该覆盖models.js默认迁移,但事实并非如此 . 我不希望每次风帆升降时都会消除我的非默认表,因为该DB来自需要它的PHP应用程序... -
739 votes10 answers95 views
如何在.NET中启用程序集绑定失败日志记录(Fusion)
如何在.NET中启用程序集绑定失败日志记录(Fusion)? -
189 votes7 answers313 views
了解Android上的颜色(六个字符)
我试图了解Android中的颜色是如何工作的 . 我将这个颜色设置为我的 LinearLayout 的背景,并且我得到一个透明的背景灰色: <gradient android:startColor="#b4555555" android:endColor="#b4555555" android:angle="270.0" />... -
521 votes14 answers1411 views
如何在Android上使背景20%透明
如何在背景中有颜色(即白色)的情况下使背景为约20%透明(不完全透明)? -
4 votes3 answers956 views
React-Native无法解析模块
我收到以下错误: Dec 16 20:03:26 NathanHyland Bunny [21876]:无法从/Users/nhyland/Documents/react-native/Bunny/index.ios.js解析模块socket.io-client / socket.io:目录无效/ Users / node_modules / socket.io-client / socket.... -
1 votes1 answers2 views
返回键反应原生android
我正在尝试使用此代码返回到我的react本机应用程序中的上一个视图 'use strict'; var React = require('react-native'); var { AppRegistry, Component, StyleSheet, Text, View, BackAndroid, Navigator } = React; var HomePa... -
77 votes4 answers1839 views
Angular2表行作为组件
我正在尝试使用angular2 2.0.0-beta.0 我有一个表格,行内容由angular2以这种方式生成: <table> <tr *ngFor="#line of data"> .... content .... </tr> </table> 现在这个工作,... -
39 votes3 answers964 views
Angular2 RC 5.找不到动态加载组件的组件工厂
我正在尝试将我的动态组件加载程序从RC4更新到RC5,因为不推荐使用ComponentResolver . 我已将加载程序更新为以下内容 @Component({ selector: 'component-dispatcher', template: `<div #container></div>` // Define the template here b... -
0 votes1 answers1434 views
用angular2可观察到的ag-grid绑定
我正在尝试在组件加载时将数据加载到ag-grid中 . 结合example on ag-grid github和answer to this question我有我的组件的ngOnInit: ngOnInit(): void { this.promisesService.getPromises() .subscribe((s: Promise[]) => { ... -
0 votes1 answers1567 views
找不到用于angular2-modal的Component的组件工厂
我正在尝试使用角度版本2.0.1版本实现Angular2-modal . 我将角度版本更改为最新版本的时刻是2.0.1我得到以下错误: 以下是plunker: "https://plnkr.co/edit/ZeRajGkGwyvKRIZkG4XQ?p=preview" 看起来像angular2-modal的问题,任何人都可以解决这个问题吗? -
1 votes2 answers811 views
Angular2 - Ag Grid - 在单元格渲染器组件中获取父实例
我正在使用Ag Grid在我的项目中显示项目列表 . 我已经使用colDef为网格实现了Ag Grid,如下所示 custom.component.ts CustomComponent // colum定义数组 [ { headerName: "Actions", field: &quo... -
5 votes1 answers175 views
找不到组件工厂 . 你有没有把它添加到@ NgModule.entryComponents?
在使用带有angular4的ag-grid时,我遇到了以下错误消息 . 我试图通过HTTP获取json后显示行数据 . this.gridOptions.api.setRowData(this.gridOptions.rowData); 但是我的代码在下面显示错误消息 . 错误错误:找不到RedComponentComponent的组件工厂 . 你有没有把它添加到@ NgModule.entr... -
209 votes15 answers701 views
如何以编程方式将Word文件转换为PDF?
我找到了几个开源/免费软件程序,允许您将.doc文件转换为.pdf文件,但它们都是应用程序/打印机驱动程序的种类,没有附加SDK . 我发现有几个程序有一个SDK,允许你将.doc文件转换成.pdf文件,但它们都是专有类型,2000美元的许可证或附近 . 有没有人知道使用C#或VB.NET来解决我的问题的任何干净,廉价(最好免费)的程序化解决方案? 谢谢! -
1 votes1 answers1518 views
没有为Component找到组件工厂 . Angular2材质对话框
我想显示一个自定义对话框,但我收到此错误: HeaderMenuComponent.html:41错误错误:找不到RegisterFormComponent的组件工厂 . 你有没有把它添加到@ NgModule.entryComponents? atComponentComponentFactoryResolver.webpackJsonp中的noComponentFactoryError(co... -
0 votes5 answers148 views
cellRendererFramework没有组件工厂找到ag-grid angular2
尝试将angularRendererFramework(v13.1.2)与angular2一起使用,但却收到此错误: ProductComponentComponent.html:7 ERROR Error: No component factory found for [object Object]. Did you add it to @NgModule.entryComponents? at... -
1 votes1 answers1129 views
Ag-grid隐藏列 - Angular2
我想通过 ToolPanel 或 columnsMenu 隐藏列时添加消息 . 我怎么知道隐藏哪个列? 我知道只有当我通过 gridOptions.columnApi.getColumnState() 加载网格时才会隐藏哪些列,但我不知道方法或事件是实时知道哪些列我隐藏了 . -
0 votes2 answers358 views
Angular2在组件中迭代JSON
我正在尝试使用不同的数据迭代JSON . 我正在使用Angular2,Ag-grid Master详细信息,详细介绍了CellRendererParams中的模板: 当我尝试迭代我的JSON获取数据时,我遇到了问题 . ngOnInit() { this.gridOptions = <GridOptions>{}; this.detailCellRendererPara... -
0 votes2 answers1183 views
无法在Angular中加载组件?
加载页面时出错: compiler.es5.js:1690 Uncaught Error:类型LoginComponent是2个模块声明的一部分:LoginModule和AppModule!请考虑将LoginComponent移动到导入LoginModule和AppModule的更高模块 . 您还可以创建一个新的NgModule,它导出并包含LoginComponent,然后在LoginModu... -
0 votes0 answers1889 views
Angular:如何在另一个共享模块中导入共享模块?
我创建了一个模块(SharedModule1),它包含Angular(Forms等)提供的所有模块 . 现在我想要我的其他模块(SharedModules2)本质上也是SharedModules来导入这个“SharedModule” . 当在任何Lazy加载的功能模块中导入“SharedModules2”时,它应该隐含地导入任何SharedModules2导入的内容(SharedModule1) ... -
-2 votes1 answers814 views
使用其他模块中共享模块的组件进行角度4
这是我的项目的结构,我有一个名为StarComponent的通用组件在sharedModule中 . 如何在ClientListComponent中使用StarComponent . 不用说,我已将starComponent添加到sharedModule中导出和声明数组,并导入(app.module或adminModule或clinetModule)中的sharedModule,它们都不起作用! ... -
0 votes2 answers933 views
Angular 2/5在惰性模块中声明指令
我想在多个模块中重用一个指令 . 我无法在parentmodule中声明该指令,因为所有子模块都是通过延迟加载来加载的 . 如果我在两个子模块中声明相同的指令,我会收到一个错误: 错误错误:未捕获(在承诺中):错误:类型AddDirective是2个模块的声明的一部分:SharedModule和GdprModule!请考虑将AddDirective移动到导入SharedModule和GdprMo... -
0 votes1 answers1643 views
错误的ERR! notarget找不到与jasmine-core@~2.9.0匹配的版本
我创建了一个新的角度应用程序但在进行npm安装时,我收到以下错误 . 有人遇到过这种问题吗? Here is my Package.json content: {"name":"my-exp","version":"0.0.0","license":"MIT","sc... -
0 votes0 answers1713 views
angular-cli,ag-grid和ng-packagr
我正在用ng-packagr构建一个使用ag-grid的软件包 . 当我尝试从'ag-grid-angular'导入AgGridModule时,它给出了一个错误,即AggridModule不会被'node_modules \ ag-grid-angular \ main.js'导出 . 当我进入nodes文件夹时,它确实导出了这个模块 . 显示以下输出: 构建Angular库为@ pdbc / p... -
1852 votes16 answers760 views
.NET中的decimal,float和double之间的区别?
.NET中的 decimal , float 和 double 有什么区别? 什么时候会有人使用其中一种? -
3 votes1 answers648 views
如何将额外的参数传递给Angular中的异步验证器(被动形式)?
我有以下异步验证器 . 如果我想将它用于反应形式,我必须将其作为第三个参数传递 slug: [null, [Validators.required], [CustomValidators.slug]], 如何将额外的参数传递给验证器? import {FormControl} from "@angular/forms"; interface IValidation { ... -
1 votes1 answers427 views
反应形式的多个自定义验证器角度2
我在 reactive form 中有两个自定义 validator ,我在下面调用函数在组件构造函数中创建表单: private createForm(): void { this.passwordUpdateForm = this.formBuilder.group({ newpassword : [null, Validators.required], passwordcon... -
0 votes0 answers579 views
将表单控件值传递给自定义验证器角度反应形式
有一个自定义验证器,它将一个值作为参数,并检查所属的控制值是否等于该参数值 . 表单是 reactive form ,应检查的值是表单中的现有控件值(fisrstname,lastname和email) . 问题是,当创建表单时,没有任何控件(fisrstname,lastname和email)具有值,因此null将被发送到验证函数,然后验证不起作用,应如何处理这种情况?我在考虑 custom a...