sample.js

来自「anewssystem新闻发布系统集成使用了spring hibernate f」· JavaScript 代码 · 共 13 行

JS
13
字号
/**
 * Modify the details of the employee.
 * @param {object} employee The employee.
 * @param {integer} newDetails
 * @config {string} [title] The new job title.
 * @config {number} [salary] The new salary.
 */
function modify(employee, newDetails) {
    if (newDetails.title != undefined)  employee.title = newDetails.title;
    if (newDetails.salary != undefined) employee.salary = newDetails.salary;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?