Javascript

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

8

چگونه می توانم یک ویژگی را از یک شی جاوا اسکریپت حذف کنم؟

با توجه به یک شی:

چگونه می توانم ویژگی regex را حذف کنم تا به myObject زیر ختم شود؟


آواتار
انصراف
1 پاسخ
8
بهترین پاسخ

برای حذف یک ویژگی از یک شی (جهش دادن به شی(mutating the object))، می توانید این کار را با استفاده از کلمه کلیدی delete انجام دهید، مانند این:

مثال که قابل اجرا هم باشه :


آواتار
انصراف