智能机器人兔兔源代码-微信小程序免费下载链接: https://pan.baidu.com/s/1qYlTAri 密码: ……继续阅读 » 开心洋葱 8年前 (2017-03-31) 2355浏览 3评论2727个赞
微信小程序游戏示例 – 剪刀石头布小游戏=====================> 没事打开小程序,和附近的人剪刀石头布,想来就来,想走就走。谁能成为武林高手?!微信小程序提供了一套在微信上运行小程序的解决方案,有比较完整的框架、组件以及 API,在这个平台上面的想象空间很大。腾讯云拿到了小程序内测资格,研究了一番之后,发现微信……继续阅读 » 开心洋葱 8年前 (2017-03-31) 1455浏览 5评论2851个赞
微信小程序 货币汇率换算应用 货币汇率换算应用链接: https://pan.baidu.com/s/1nvPpsBv 密码: ……继续阅读 » 开心洋葱 8年前 (2017-03-31) 2304浏览 1评论1987个赞
极客学院文章列表 -微信小程序 基于微信小程序的在线免费小说的开发链接: https://pan.baidu.com/s/1eR8swvw 密码: ……继续阅读 » 开心洋葱 8年前 (2017-03-31) 1900浏览 1评论2278个赞
说明:虽然只实现了会议精灵首页,但设计较为美观,值得借鉴。数据接口:使用本地数据目录结构:– img — 存放项目图片– pages — 存放项目页面相关文件,包括index,layout等页面– utils — 存放日期处理文件,可require引入开发环境:微信web开发者工具 v0.10.1028……继续阅读 » 开心洋葱 8年前 (2017-03-31) 3067浏览 1评论2541个赞
java 随机队列实现的完整方法import java.util.ArrayList;import java.util.Collection;import java.util.Iterator;import java.util.LinkedList;import java.util.NoSuchElementException;impo……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2436浏览 352个赞
php通过HTTP_USER_AGENT判断用户是否是在微信客户端内打开的网页function is_weixin(){ if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) { ret……继续阅读 » 水墨上仙 8年前 (2017-03-31) 3004浏览 1900个赞
滑动选项卡效果示例 -微信小程序源码下载滑动选项卡效果下载链接: https://pan.baidu.com/s/1nvDKaTz 密码:……继续阅读 » 开心洋葱 8年前 (2017-03-31) 3466浏览 4评论828个赞
微信小程序用画布画出时钟效果源代码说明:利用canvas实现了模拟时钟功能。数据接口:使用本地数据接目录结构:pages — 存放项目页面渲染相关文件开发环境:微信web开发者工具 微信小程序-画布时钟下载链接: https://pan.baidu.com/s/1jIr53x0 密码: ……继续阅读 » 开心洋葱 8年前 (2017-03-31) 1789浏览 0评论1243个赞
果库图文小程序 微信小程序源码果库图文小程序下载链接: https://pan.baidu.com/s/1o7MpnN8 密码:……继续阅读 » 开心洋葱 8年前 (2017-03-31) 2081浏览 2评论653个赞
js使用try…catch捕捉错误信息代码方法var txt="";function message(){try { adddlert("Welcome guest!"); }catch(err) { txt="There was……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2296浏览 2652个赞
JavaScript中可以通过continue临时中止循环的某次动作,然后继续执行<p>Click the button to do a loop which will skip the step where i=3.</p><button>Try it</button><p……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2310浏览 2245个赞
下面的代码提供了Python 最常用的日期和时间操作方法,包括日期转换,获得当前时间,获得多少天以后的日期等等,非常全面。#-*- coding: utf-8 -*-import datetime #给定日期向后N天的日期def dateadd_day(days): d1 = datetime.datetime.now() ……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2193浏览 2773个赞
php 树形结构的读取<?php // 从数组转换,操作无限分类数组. // 数组格式, array(array('cid', 'pid', 'val'), array('cid', 'pid', 'val')); class tr……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2187浏览 2749个赞
java 简单实用的文件下载代码package wan.url.download;import java.io.File;import java.io.FileOutputStream;import java.io.InputStream;import java.io.OutputStream;import java.net.Htt……继续阅读 » 水墨上仙 8年前 (2017-03-31) 1506浏览 1229个赞
下面的演示代码通过while循环语句输出数字1-6<p>75271.com,Click the button to loop through a block of as long as <em>i</em> is less than 5.</p><button>Try it……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2550浏览 1816个赞
Js通过记录cookie临时访客信息用户第一次访问网页时会提示用户输入一个昵称,然后写入cookie,当用户再次来到时会读取cookie信息,提取用户昵称,欢迎用户的到来function getCookie(c_name){var c_value = document.cookie;var c_start = c_valu……继续阅读 » 水墨上仙 8年前 (2017-03-31) 2316浏览 433个赞
JavaScript中我们可以定义一个通用的错误处理程序,只要页面出现JS错误就自动调用已经定义好的错误处理程序onerror=handleErr;var txt="";function handleErr(msg,url,l){txt="There was an error on th……继续阅读 » 水墨上仙 8年前 (2017-03-31) 1808浏览 727个赞
js搜索字符串,成功后返回找到的字符串-JavaScript字符串带有一个match方法用于搜索字符串,如果找到指定的字符串则返回搜索字符串,如果未找到则返回null,match方法区分大小写var str="Hello world!";document.write(str.match("worl……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1710浏览 205个赞
js代码输出当前时间Unix时间戳-JavaScript语言下面的代码通过Date对象的getTime()放回unix时间戳,即从1970年1月1日到当前时间的秒数<p id="demo">Click the button to display the number of milliseconds si……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2133浏览 1201个赞
js将当前时间转换为标准UTC时间-JavaScript代码,北京在东八区,在北京时间基础上减掉8小时<p id="demo">Click the button to display the UTC date and time as a string.</p><button>……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2318浏览 2913个赞
C#使用TextReader从文本类型文件读取数据TextReader reader = File.OpenText(@"C:\data\file.xml"); // Read a line at a time until we reach the end of filewhile (reader.Peek( ) != ……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1578浏览 2002个赞
在Linux系统里使用C语言获取所有网卡信息的方法#include #include #include #include #include int main(){ struct ifreq ifr; struct ifconf ifc; char buf[2048]; int succ……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1220浏览 1752个赞
使用JavaScript语言创建数组的方法,下面的代码演示了在JS中如何创建数组并赋值,然后对数组进行循环遍历输出var i;var mycars = new Array();mycars[0] = "Saab";mycars[1] = "Volvo";mycars[2] = ……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2283浏览 535个赞
在JavaScript代码中让contact函数合并两个数组下面的代码演示了JS中如何将两个数组连接成一个数组<p id="demo">Click the button to join three arrays.</p><button>Try it</button&……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1889浏览 2001个赞
怎么样用JavaScript的alert显示带换行的警告对话框JavaScript的alert对话框如果需要换行的话可以在字符串中加入\n即可<p>Click the button to demonstrate line-breaks in a popup box.</p><button>T……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1355浏览 1238个赞
使用JavaScript语言获取iframe的longdesc属性<p>Your browser does not support iframes.</p><p>The URL of the long description is:document.write(document……继续阅读 » 水墨上仙 8年前 (2017-03-30) 3189浏览 696个赞
JavaScript中可以使用confirm弹出一个确认对话框,用户可以点击ok或者cancel,JS可以接收到用户点击的按钮<p>Click the button to display a confirm box.</p><button>Try it</button>&l……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2482浏览 2319个赞
C#代码实现穿过代理服务器取远程用户真实IP地址 if(Request.ServerVariables["HTTP_VIA"]!=null){ string user_IP=Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); ……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2093浏览 1286个赞
python API接口调用示例代码#!/usr/bin/python# encoding:utf-8 import urllib2, json, urllib data = {}data["appkey"] = "your_appkey_here"data["word……继续阅读 » 开心洋葱 8年前 (2017-03-30) 1698浏览 0评论2925个赞
这段代码用来判断ie的版本,不同的版本调用不同的样式<!-- [if IE]>-->According to the conditional comment this is Internet Explorer<!-- [if IE 5]>-->According to the conditional ……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2882浏览 1061个赞
一个构造sql语句的类/*** @package Database Class* @author injection (mail:injection.mail@gmail.com)* @version 1.0*/@ini_set( 'display_errors',0 );class DataBas……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2695浏览 422个赞
js提示用户输入对话框prompt使用代码演示使用JavaScript代码Click the button to demonstrate the prompt box.Try itfunction myFunction(){var x;var person=prompt(“Please enter your name”,&……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2928浏览 2520个赞
简单的HTTP服务器用Java代码实现import java.net.*;import java.nio.ByteBuffer;import java.nio.channels.*;import java.nio.charset.*;import java.util.concurrent.*;import java.io.*;……继续阅读 » 水墨上仙 8年前 (2017-03-30) 2756浏览 895个赞
小程序2048游戏-微信小程序游戏源码小程序2048游戏源码下载地址:……继续阅读 » 开心洋葱 8年前 (2017-03-30) 3299浏览 0评论2826个赞
经典打飞机游戏 – 微信小程序打飞机游戏源码小程序打飞机游戏下载链接: 链接: http://pan.baidu.com/s/1kVfYghL 密码: ……继续阅读 » 开心洋葱 8年前 (2017-03-30) 1948浏览 5评论2620个赞
php代码实现从电子邮件中抽取一个字符串function extract_emails($str){ // This regular expression extracts all emails from a string: $regexp = '/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+(……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1916浏览 2380个赞
go代码使用 fmt.Sscanf()实现转换科学计数的例子,但是只能转换成int型package mainimport "fmt"func main() { var ( old = "1.00000023e+06" new float64 ) n, err := fmt.Ss……继续阅读 » 水墨上仙 8年前 (2017-03-30) 340013浏览 900个赞
JavaScript添加监控事件 addEventListner// addEventListener polyfill 1.0 / Eirik Backer / MIT Licence(function(win, doc){ if(win.addEventListener)return; //No need to polyfill func……继续阅读 » 水墨上仙 8年前 (2017-03-30) 1196浏览 2028个赞
python作为脚本语言根据类名字符生成类实例非常简单,类似java的Class.forNamepython是一个脚本语言,它不象java一样有一个专门的包来处理反射。以 下是我们来看看python是怎么做到类似java一样的反射功能的。我在网上搜了一下,因为在网上没有很明确的文章说要怎么做,所以,我写了这篇,希望 新手不要……继续阅读 » 水墨上仙 8年前 (2017-03-29) 3095浏览 2260个赞
微擎排行榜游戏合集-微赞营销游戏排合集 摇骰子吧抽奖hl_bbb-微擎微赞通用功能游戏模块http://www.75271.com/709.html 免费html5微信游戏 端午节微信小游戏粽子大战源码类似微信打飞机..http://www.75271.com/676.html俄罗斯方块wdl_cube-微擎微赞好玩的微游……继续阅读 » 开心洋葱 8年前 (2017-03-29) 1188浏览 0评论476个赞
Java代码实现7种将字符串反转的效果import java.util.Stack;public class StringReverse { public static String reverse1(String s) { int length = s.length(); if (length <= 1) retu……继续阅读 » 水墨上仙 8年前 (2017-03-29) 2026浏览 1656个赞
可以通过userAgent判断是否是微信的客户端打开的网页function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { ……继续阅读 » 水墨上仙 8年前 (2017-03-29) 2630浏览 350个赞
go语言将golang的科学计数值转换为相应字符串,使用 fmt格式输出package mainimport "fmt"func main() { n := fmt.Sprintf("%.2f", 1.00000027e+06) fmt.Println(n)}……继续阅读 » 水墨上仙 8年前 (2017-03-29) 1969浏览 861个赞
没有一个具体的网址,但是有时候我们希望浏览器显示一个没有任何内容的网页,可以使用about:blank来显示空白页面。代码很简单,只要在浏览器地址栏输入下面的代码,则浏览器会显示一个空白网页about:blank……继续阅读 » 水墨上仙 8年前 (2017-03-29) 2925浏览 1828个赞