跨平台应用开发框架 Bridge.NET

码农软件 · 软件分类 · 手机开发工具 · 2019-04-30 21:29:23

软件介绍

Bridge.NET 通过将 C# 转换成 JavaScript 来构建跨平台的移动应用、Web应用和桌面应用。

通过 Visual Studio 插件,它为开发者提供了项目模版和编译器。

它提供了对很多流行的 JavaScript 框架的支持,如 jQuery,Bootstrap,PhoneGap,AngularJS ……。只需在项目中安装对应的 NuGet Package,就可以引用相关的 JavaScript API

C#:

// Full JavaScript API
Document.GetElementById("demo")
    .InnerHTML = "Hello";
 
 
// Call Alert()
Window.Alert("Bridge.NET");
 
 
// C# Classes
var person = new Demo.App.Person();
 
 
// Set C# Property
person.Name = "Frank";
 
 
// Generic Lists
var people = new List<Person>();
people.Add(person);
 
 
// Write to the Console
Console.WriteLine(people[0].Name); // Frank

JavaScript:

// Converted to correct JavaScript syntax
document.getElementById("demo")
    .innerHTML = "Hello";
 
 
// Call alert()
window.alert("Bridge.NET");
 
 
// JavaScript Classes
var person = new Demo.App.Person();
 
 
// Converted to proper 'set' and 'get' functions
person.setName("Frank");
 
 
// Equivalent List in pure JavaScript
var people = new Bridge.List(Demo.App.Person)();
people.add(person);
 
 
// Properly converted to console.log
console.log(people.get(0).getName()); // Frank


本文地址:https://codercto.com/soft/d/4746.html

Ordering Disorder

Ordering Disorder

Khoi Vinh / New Riders Press / 2010-12-03 / USD 29.99

The grid has long been an invaluable tool for creating order out of chaos for designers of all kinds—from city planners to architects to typesetters and graphic artists. In recent years, web designers......一起来看看 《Ordering Disorder》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具