var MyBuilder = new StringBuilder("你的工资是:");
var MySalary = 4120.24;
MyBuilder.AppendFormat("{0:C}", MySalary);
Response.Write(MyBuilder);//你的工资是:¥4,120.24
var MyBuilder = new StringBuilder("你的工资是:");
var MySalary = 4120.24;
MyBuilder.AppendFormat("{0:C}", MySalary);
Response.Write(MyBuilder);//你的工资是:¥4,120.24
转载于:https://www.cnblogs.com/Yellowshorts/archive/2013/02/16/2913566.html
//获取某一个cookie的值 const getCookie = key => {var k = key, dc = document.cookie;if (dc.length > 0) {var s = dc.indexOf(k + "=");if (s != -1) {s = s + k.length + 1;var e = d...
var SGheadMapPoints = {/*obj={ maxLng: minLng: maxLat: minLat: maxCount:最大人数 minCount:最小人数 total:点位数量 }*/get: function (obj) {var arr = [];obj.maxCount || (obj.maxCount...
创建index.html代码如下
//自动搜索指定的请柬 var alertTipText = "请柬找到了,就在这个网页里面,自己仔细看吧"; var delay = 1 * 1000;//1秒后循环下一页寻找 /*获取子DOM元素在父元素里面的索引位置(是第几个元素)*/ function getNodeListIndex(childNode) {return c...
获取天气情况(不支持跨域) /*json原生获取*/ function getJSON() {var XML;var url = "http://wthrcdn.etouch.cn/weather_mini?city=杭州";if (window.XMLHttpRequest) {XML = new XMLHttpRequest(...