//程序运行完成时一定要有输出语句,本工具才能正确展示运行结果。 
console.log("Hello JSRUN!   \n\n         - from NodeJS .");

var fs = require("fs");

// 异步读取
fs.readFile('/tempJS/string.js', function (err, data) {
   console.log("ceshi: ");
   if (err) {
   console.log("err: "+err);
       return console.error(err);
   }
   console.log("异步读取: " + data.toString());
});

  

winny.chan(前端大神) - 2020-07-03 0 人
testNode.js
module.exports = {
    en: {
      record: 'The historical record',
      link: 'Intelligent linkage',
      linkRecord: 'Linkage log',
      setting: 'Set up the',
      open: 'open',
      close: 'guan',
      doorSensorStatus: 'Magnetic door state',
      noHistory: 'No historical record',
      doorTips: 'Magnetic door {0}',
      temp: 'The temperature',
      humidity: 'humidity',
      alarmSet: 'The alarm management',
      bright: 'brightness',
      today: 'Today,',
      closePopup: 'Shut down',
      muffling: 'Muffling',
      workOn: 'Work On',
      labelTitle: '{0} {1}',
      alarmRemove: 'Cancel the alarm',
      removeAlarmSuccess: 'eport to the police to remove',
      emptyData: 'empty data',
      day: 'day',
      year: 'year',
      month: 'month',
      tempValue_1: 'very cold',
      tempValue_2: 'cold',
      tempValue_3: 'comfortable',
      tempValue_4: 'hot',
      tempValue_5: 'The heat',
      humidityValue_1: 'dry',
      humidityValue_2: 'A little dry',
      humidityValue_3: 'comfortable',
      humidityValue_4: 'Wet',
      tempStatus: 'The current temperature{0}',
      humidityStatus: 'air {0}',
      maxMinText: '{0}~{1}',
      minitempSet: 'Temperature upper and lower limits are set',
      minihumSet: 'Setting the upper and lower limits of humidity',
      noOpen: '(not opened)',
      callSos: 'Phone call',
      smsSos: 'SMS notification',
      buy: 'Buy',
      autoTitle: 'automation',
      scenesTitle: 'A key to perform',
      triggerSuccess: 'Execute successfully',
      emptyScenes: 'No intelligent linkage yet',
      alarmCountDown: 'Alarm',
      chartTitle: 'The data curve',
      checking: 'Equipment self-inspection...',
      checkingDesc: 'Self - inspection results can be viewed in the history',
      mufflinging: 'Mute.....',
      mufflingDesc: 'The history is available for noise cancellation results',
      checkFail: 'Self-checking failure',
      mufflingSuccess: 'Have the mute',
      mufflingFail: 'The mute failure',
      noneSetting: 'There are no Settings currently',
      sosAlarm: 'Call the police',
      removerAlarmSuccess: 'Report to the police to remove',
      doorOpenNum: 'Times of opening today | {0}',
      minute: 'min',
      second: 's',
      now: 'now',
      unit_c: '℃',
      unit_f: '℉',
      asyncPutTips: 'Settings effect aftern the device next wakes up ',
    },
    zh: {
      record: '历史记录',
      link: '智能联动',
      linkRecord: '联动日志',
      setting: '设置',
      open: '开',
      close: '关',
      doorSensorStatus: '门磁状态',
      noHistory: '暂无历史记录',
      doorTips: '门磁 {0}',
      temp: '温度',
      humidity: '湿度',
      alarmSet: '告警管理',
      bright: '亮度',
      today: '今天',
      closePopup: '关闭',
      muffling: '消音',
      workOn: '工作中',
      labelTitle: '{0} {1}',
      emptyData: '暂无数据',
      day: '天',
      year: '年',
      month: '月',
      tempValue_1: '寒冷',
      tempValue_2: '冷',
      tempValue_3: '舒适',
      tempValue_4: '热',
      tempValue_5: '酷热',
      humidityValue_1: '干燥',
      humidityValue_2: '略干',
      humidityValue_3: '舒适',
      humidityValue_4: '潮湿',
      tempStatus: '当前温度{0}',
      humidityStatus: '空气{0}',
      maxMinText: '{0}~{1}',
      minitempSet: '温度上下限设置',
      minihumSet: '湿度上下限设置',
      noOpen: '(未开通)',
      callSos: '电话通知',
      smsSos: '短信通知',
      buy: '购买',
      autoTitle: '自动化',
      scenesTitle: '一键执行',
      triggerSuccess: '执行成功',
      emptyScenes: '暂无智能联动',
      alarmCountDown: '报警',
      chartTitle: '数据曲线',
      checking: '设备自检中.....',
      checkingDesc: '自检结果可查看历史记录',
      mufflinging: '消音中.....',
      mufflingDesc: '消音结果可查看历史记录',
      checkFail: '自检失败',
      mufflingSuccess: '已消音',
      mufflingFail: '消音失败',
      noneSetting: '暂无设置项',
      sosAlarm: '报警',
      alarmRemove: '解除报警',
      removeAlarmSuccess: '报警解除',
      doorOpenNum: '今日开门次数 | {0}',
      now: '现在',
      minute: '分',
      second: '秒',
      hour: '时',
      unit_c: '℃',
      unit_f: '℉',
      asyncPutTips: '设置将在下次设备唤醒时生效'
    },
  };
  
winny.chan(前端大神) - 2020-07-03 0 人
string.js
var html = "";

for (let i = 1; i <= 5; i++) {
    for (let j = 0; j < i; j++) {
        html += "*";
    }
    html += "\n";
}
console.log(html);

zhuma(zm) - 2020-07-02 0 人
打印星号3角形
var html = "";

for (let i = 1; i <= 5; i++) {
    for (let j = 0; j < i; j++) {
        html += "*";
    }
    html += "\n";
}
console.log(html);

zhuma(zm) - 2020-07-02 0 人
打印星号3角形
//程序运行完成时一定要有输出语句,本工具才能正确展示运行结果。 

    function getIntArrayIndex(str,index){
        if(typeof str == "undefined" || str == null || str == ""){
            return 0;
        }
        array = str.split(",");
        if(array.length>0){

        }
        var element = array[index];
        if(typeof element == "undefined" || element == null || element == ""){
            return 0;
        }
        return parseInt(element)
    }




function join(array){
    return array.join(",");
}

var b = '1,2,3,4,5'

array = getFristInt(b,2)
console.log(array);


frost373(前端大神) - 2020-07-02 0 人
1111111111
//程序运行完成时一定要有输出语句,本工具才能正确展示运行结果。 
console.log("Hello JSRUN!   \n\n         - from NodeJS .");

const data = {
    formKey:" test",
    type:'type'
}

const jsonString = JSON.stringify(data);

console.log(jsonString)
home123(路在脚下) - 2020-07-02 0 人
测试请求语句
没有了
1/121 下一页