[Web开发]Html5定位不准确问题 2018/01/04 | Web开发 | hujiulin | 暂无评论 | 499 views if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(getPosition,getPositionError, { // 指示浏览器获取高精度的位置,默认为false enableHighAccuracy: true, // 指定获取地理位置的超时……
[HTML5]Html5本地图片读取及裁剪 2017/01/03 | Web开发 | hujiulin | 暂无评论 | 923 views 需要使用到Html5的FileReader,其中image-file是一个input type=file的文件浏览框。如果需要限制读取图片或者照相机: <input type="file" accept="image/*" capture="camera" id="image-file" name=" image-file" /> 当用户选择了图片之后,给input file绑……