edit 相关问题

通过例如删除,插入,移动或复制文本来修改(计算机文件)。

如何更改 Woo-commerce 中的文本 - Coinbase Commerce

我想更改此文本,但不知道在哪里更改 Woo-commerce - 支付网关 coinbase commerce 在这张图片中,红色圆圈中的单词

回答 2 投票 0

onEdit Google Sheets / AppsScript 出现问题

希望你一切都好! 我想让我创建的函数“webScraping11”在 AG、AS 或 AU 列被修改但仅在特定行中运行时运行。例如,当我们修改第11行时,c...

回答 1 投票 0

通过 Angular 应用程序上传 .docx .pdf 编辑和打印

我正在开发 Angular 应用程序,我需要实现一个功能,允许我上传和预览 .docx 和 .pdf 文件。此外,我想提供编辑这些的功能

回答 1 投票 0

如何编辑电子表格特定列中随机选择的单元格并对多个电子表格重复此任务?

任务是为数据分析考试创建几个不同的电子表格文件。我想要有 50 个基于相同数据的电子表格版本,但每个文件都应该有一些行...

回答 1 投票 0

如何在 Windows 10 的音乐中编辑 MP3、FLAC 等文件的标题、贡献艺术家、专辑、年份等信息

在某些情况下,我最终会在 Windows 10 的音乐文件夹中看到歌曲,其中包含歌曲信息的所有列都为空白,即歌曲的标题、艺术家、专辑、年份等。过程...

回答 2 投票 0

如何在 Laravel 中编辑数据?

我想用laravel编辑讲师数据。但是,我收到 404 未找到错误。 这是我使用的路线 路线::控制器(DosenController::类) ->前缀('dosen') ->中间件(['

回答 1 投票 0

patchValue 上的 Angular PrimeNG p 日历反应形式错误位置 2 出现意外文字

在 Angular 13 应用程序中,使用 PrimeNG Calendar 在 Angular 13 应用程序中,使用 PrimeNG Calendar <p-calendar [minDate]="today" [showIcon]="true" styleClass="form-control" showButtonBar="true" dateFormat="dd/mm/yy" inputId="icon" placeholder="dd/mm/yy" formControlName="eventStartDate"></p-calendar> 在反应式表单中使用,它在保存新表单时工作正常。我也使用相同的表单进行编辑。 编辑基于代码加载数据的表单。 但是当 patchValue 到表单时,出现错误 错误位置 2 出现意外文字 编辑代码 loadEventToEdit() { this.eventService.getEventByCode(this.eventCode).subscribe((res) => { this.event = res; console.log('the event to update', this.event); this.theForm.patchValue(res); 其余字段路径值工作正常。 在patchValue之前将日期设置为新日期。 loadEventToEdit() { this.eventService.getEventByCode(this.eventCode).subscribe((res) => { this.event = res; console.log('the event to update', this.event); this.event.timing.eventStartDate = new Date( this.event.timing.eventStartDate ); this.theForm.patchValue(this.event); 为需要修补资源的资源提供完整的路径。 对于 FormArray,你必须先制作 getter,然后你可以使用 Push 或 insert 方法来修补表单数组 loadEventToEdit() { this.eventService.getEventByCode(this.eventCode).subscribe((res) => { this.event = res; this.theForm.controls['eventStartDate'].patchValue(this.event.timing.eventStartDate); }) } 我也有类似的错误。 确保字段类型为日期,并将其设置为表单上 patchValue 之前的新日期。 一种方法是使用 DayJS。 let dates = [ dayjs(feature?.start_date, 'MM-DD-YYYY').toDate(), dayjs(feature?.end_date, 'MM-DD-YYYY').toDate(), ]; this.form.patchValue( { dateRange: dates || null }, { emitEvent: false, onlySelf: true, } ); P-Calendar 组件需要 Date 对象作为值,不能将其传递给其他类型的对象。因此,在修补时,请务必访问表单的控件并使用日期对象创建它。 response => { this.yourForm.controls['likeStartDate'].patchValue(new Date(response.startDate)); }

回答 5 投票 0

如何通过点击更新按钮Angular来获取下拉框的值

我尝试将数据发送到我的 Angular 项目中的 Dropbox,但我无法将任何选定的数据发送到该 Dropbox。当我在主表中单击更新按钮时我想要它。我使用 patchvalue t...

回答 1 投票 0

用用户输入的文本替换文本,多行

我在批处理文件中编写了一些代码,我已经设置了它,以便您将文本拖放到批处理文件中,并使用 a 将标题添加到 .TXT 文档的顶部文档...

回答 1 投票 0

如何在 Jar 文件内或旁边执行脚本?

我有一个脚本生成 2 个新文件作为令牌并使用它们进行身份验证以执行任务。它还有两个额外的文件,它从一个文本文件中读取信息并插入我...

回答 1 投票 0

JS:TODOLIST - 编辑/更新项目

我是初学者。当我点击“更新”按钮时,不知道如何替换新的“输入值”。 当我点击“编辑”按钮时,我添加了“输入”。 我想在新的“输入”中写点东西,当我点击“更新”时(

回答 1 投票 0

如何编辑具有相同对象角度的对象数组的数据?

我正在使用服务在不属于父子关系的组件之间共享数据 customer-form-data.html 文件 我正在使用服务在不属于父子关系的组件之间共享数据 customer-form-data.html 文件 <div class="container-fluid"> <div class="row"> <div class="col-12"> <!-- from start from here --> <form #f="ngForm" name="customerForm"> <div> <label for="" class="from-label">Customer Name:</label> <input type="text" class="form-control" [(ngModel)]="custName" name="custName" autocomplete="off"> </div> <div> <label for="" class="form-label">Customer email:</label> <input type="email" class="form-control" id="contactEmail" [(ngModel)]="custEmail" name="custEmail" autocomplete="off" > </div> <app-customer-address-data #address></app-customer-address-data> <div class="mt-2 "> <label for="" class="me-3">Customer status:</label> <select name="" id="" (change)="selectedDropDownValue($event)"> <option value="Active" selected>Active</option> <option value="Inactive">Inactive</option> </select> </div> <button type="submit" class="btn" (click)="onclickSubmit()" [disabled]="!custName || !custEmail">Submit Data</button> </form> <hr> <!-- form end here --> </div> customer-form-data.ts 文件 export class CustomerFormDataComponent implements OnInit { id: number = 0; custName!: string; custEmail!: string; @ViewChild(CustomerAddressDataComponent, { static: true }) child!: CustomerAddressDataComponent; selectedStatusValue!: string; @ViewChild('f') customerDetailForm!: NgForm; customerData: customerListInterface[] = []; editedObject!: customerListInterface; constructor(public userDataservice: UserDataService) {} ngOnInit(): void { this.customerData = this.userDataservice.userData; // default value for status dropdown this.selectedStatusValue = 'Active'; // edit data functionality using subsriver to fill up the from on click on edit data button this.userDataservice.editData.subscribe((user) => { // here i get object of selected item {id: 1, name: 'heli', email: '[email protected]', address:'india', status: 'active'} and then i fill up it to form input this.id = user.id; this.custName = user.name; this.custEmail = user.email; this.child.addressData = user.address; this.selectedStatusValue = user.status; }); } selectedDropDownValue(event: any) { this.selectedStatusValue = event.target.value; } // onclick on submit onclickSubmit() { this.customerData.push({ id: this.id++, name: this.custName, email: this.custEmail, address: this.child.addressData, status: this.selectedStatusValue, }); this.customerDetailForm.reset(); this.child.addressData = ''; } 所以事情是当编辑数据按钮单击表行并且数据填充到表单中时 adter 编辑数据当用户单击此处提交数据时它应该比较表单的 id 与对象数组的现有 id userdata.service.ts 文件 export class UserDataService { userData: customerListInterface[] = []; editData = new EventEmitter<customerListInterface>(); } 客户数据表.html <table class="table"> <thead class="border"> <tr > <th scope="col">Customer Name </button></th> <th scope="col">Customer email</th> <th scope="col">Customer address</th> <th scope="col">status</th> <th></th> </tr> </thead> <tbody > <!-- itterate over array --> <tr *ngFor="let data of customerFilteredArray"> <td> {{ data.name }} </td> <td> {{ data.email }} </td> <td class="addressData"> {{ data.address }} </td> <td>{{ data.status}}</td> <td> <button type="button" class="btn btn-primary editButton" (click)="editData(data)">Edit Data</button> </td> </tr> </tbody> </table> 客户数据表.ts 文件 export class CustomerDataTableComponent { isAssending: boolean = false; customerDataArray: customerListInterface[] = []; customerFilteredArray: customerListInterface[] = []; constructor(private userDataService: UserDataService) {} ngOnInit(): void { this.customerDataArray = this.userDataService.userData; this.customerFilteredArray = this.customerDataArray; } // get the value of editdata row and index of selected edit value editData(event: any) { this.userDataService.editData.emit(event); } } 全球界面 export interface customerListInterface { id: number; name: string; email: string; address: string; status: string; } 现在我的问题是当单击编辑按钮时我如何编辑数据,该按钮在表格行内可用我之前做了哪个索引但这是错误的方法 我有一个基本的理解,我可以通过比较 id 的值来实现,如果行 id 和对象 id 都相同,那么它将被编辑,否则它将把数据存储在新行中,并将对象存储在数组中 我试过了,但我无法实现,我只是想不通如何使用按钮内的对象单击并将其与对象数组的其他 id 进行比较

回答 0 投票 0

在 EXTJS 中创建 node.appendChild 时选择并编辑

我是 Extjs 的新手,我目前正在使用一棵树,我可以在其中创建一个分支,然后创建部分。我需要帮助来编辑我的代码的功能。 createSection:函数(按钮){...

回答 1 投票 0

Sed 编辑就地竞争条件

我有一个脚本被触发 50 次,同时执行 sed -i 以在单个文本文件中进行编辑。每个脚本都试图编辑同一个文件,我怀疑存在冲突,因为 ...

回答 1 投票 0

如何在不复制结果的情况下用jq替换多个值?

我正在尝试根据一些条件更新 JSON 文件的某些属性: 属性的名称必须包含字符串“Description”。 属性的 ismydata 属性 ...

回答 1 投票 0

我无法编辑帖子网址

写了一篇新文章后,当我要编辑 URl 名称时,它没有发生,默认情况下采用 RL 名称。我正在使用 wordpress 和 Rank Math 插件。我已经尝试了所有可能的更改,例如

回答 0 投票 0

我无法在 PHP 邮件程序中编辑我的邮件文本

我已经建立了一个站点并在其中添加了联系表。 Php 邮件程序工作正常,但是当邮件文本到达我这里时,字母之间没有空白。所有这些都是相邻的。我要列出

回答 2 投票 0

密码未在 ruby 中更新

我创建了一个允许用户更改密码的页面,但更新查询不起作用 password_cotroller: before_action :require_no_authentication, only: [:new, :create] 定义编辑 ...

回答 0 投票 0

[Route: users.update] [URI: users/{user}] [Missing parameter: user] 缺少必需的参数

[路由:users.update] [URI:users/{user}] [缺少参数:user] 缺少必需的参数。 [路由:users.update] [URI:users/{user}] [缺少参数:user] 缺少必需参数。

回答 0 投票 0

程序不会调出编辑画面

对于一项作业,我需要允许用户输入和编辑数组中结构的数据。目前虽然我根本无法让程序调出我的编辑屏幕,更不用说编辑大...

回答 0 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.