Skip to main content
Yiju Care GuidePreparing your page
医疗级专业核验
透明收费 · 拒绝隐形 Daily 08:00-20:00

Verified Listings · Professional Advisors · Free Matching

Find Senior Communities

Compare communities by location, care needs and budget, with clear pricing, availability and verified service details.

  • 2,486 communities
  • 38 service cities
  • 7×12h Advisor Hours

Senior Care News & Communities

On this page 8 items
View All Communities
深拷贝News
Senior Care News

深拷贝

// 浅拷贝存在的问题:浅拷贝只能拷贝一层数据。 let obj1 = { name: "小白", color: "#ff0000", like: } let obj2 = {} for (let key in obj1) { obj2 = obj1 } // 修改拷贝后的bo...

Read More
变量的拷贝News
Senior Care News

变量的拷贝

// 引用类型的拷贝 let obj1 = { name: "小红", age: 18, sex: "女", } let obj2 = obj1; console.log(obj1); console.log(obj2); /* | 执行流程 | 1).定义了一个obj1对象 ...

Read More
基本类型和引用类型News
Senior Care News

基本类型和引用类型

// 基本数据类型(存放在栈里面) let a1 = 50; let b1 = a1; a1 = 40; console.log("a1=", a1, "b1=", b1); /* | 执行流程 | 1).定义变量a1赋值50 2).定义变量b1 把a1的50赋值给b1,此时b...

Read More
IIFENews
Senior Care News

IIFE

在ES5中为了避免全局污染所用的手法。 (function () { var sum = 0; for (var i = 0; i <= 100; i++) { sum += i; } console.log(sum); })();

Read More
Js箭头函数News
Senior Care News

Js箭头函数

ES5 let show = function () { console.log("show"); } show() ES6箭头函数 let show = () => { console.log("show"); } show() 当形式参数只有一个的时候,可以省略() ...

Read More
阻止事件传播News
Senior Care News

阻止事件传播

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> button { border: 0; w...

Read More
JS删除指定数组元素News
Senior Care News

JS删除指定数组元素

//封装函数删除数组中所有的指定的数字 let arr1 = ; //定义函数 const deleteNum = (arr, num) => { //判断传入值是否为数组 if (arr instanceof Array) { arr.splice(arr.indexO...

Read More

Selection Guide