반응형

javascript 840

JavaScript에서 JSON 문자열을 만드는 방법은 무엇입니까?

JavaScript에서 JSON 문자열을 만드는 방법은 무엇입니까? window.onload = function(){ var obj = '{ "name" : "Raj", "age" : 32, "married" : false }'; var val = eval('(' + obj + ')'); alert( "name : " + val.name + "\n" + "age : " + val.age + "\n" + "married : " + val.married ); } 이와 같은 코드에서 그냥 놀기 위해 JSON 문자열을 만들려고합니다. 그것은 오류를 던지고 있지만 모든 이름, 나이, 결혼 한 줄을 한 줄 (2 행)에 넣으면 그렇지 않습니다. 뭐가 문제 야? Javascript는 여러 줄에 걸쳐 문자열을 처리하지 ..

your programing 2020.09.25

When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed]

When creating a new GUI, is WPF the preferred choice over Windows Forms? [closed] Most restrictions and tricks with windows forms are common to most programmers. But since .NET 3.0 there is also WPF available, the Windows Presentation Foundation. It is said that you can make "sexy applications" more easy with it and with .NET 3.5 SP1 it got a good speed boost on execution. But on the other side ..

your programing 2020.09.25

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1) Connecting and disconnecting to Bluetooth devices has been giving various results on Windows Phone/Desktop 8.1. I have been using the Windows.Devices.Bluetooth.Rfcomm namespace and I have tried to connect several devices with different Bluetooth versions/classes. Version 1.2 (Class 1 and 2) Version 2.0 (Class 1 and 2..

your programing 2020.09.25

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy)

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy) I'm trying to make an application which uses the new Bluetooth Low Energy API of Android. For this, I started with the BLE sample coming with API level 18. As I read that Android can not act as a Peripheral, I put the Android phone in central mode, scanning for BLE devices around it. For this purpose, I made some test..

your programing 2020.09.25
반응형