跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 仿站大佬来报个价?仿这三个计算器 应该很简单
未分類
8 4 月 2020

仿站大佬来报个价?仿这三个计算器 应该很简单

lsza 大佬有话说 : 2020-3-19 19:45:08

仿站大佬来报个价?仿这三个计算器 应该很简单

本帖最后由 lsza 于 2020-3-19 19:47 编辑

http://guanshangyu.cc/gongjv/ydyy.html
http://guanshangyu.cc/gongjv/ygst.html
http://guanshangyu.cc/gongjv/glll.html
其他玩意 不要就要这仨计算器 yc002t
核心代码就这个,我不明白为什么要去discuz的plugin.php。。。。。。
<script type="text/javascript">
jQuery(function(){
jQuery("#p_submit").click(function(){
var p_long = parseInt(jQuery("#p_long").val());
var p_long = isNaN(p_long) ? 0 : p_long;
var p_width = parseInt(jQuery("#p_width").val());
var p_width = isNaN(p_width) ? 0 : p_width;
var p_height = parseInt(jQuery("#p_height").val());
var p_height = isNaN(p_height) ? 0 : p_height;
if(p_long <= 0) {
showDialog(‘长度不能为空,且只能为大于0的数字’, ‘alert’);
return false;
}
if(p_width <= 0) {
showDialog(‘宽度不能为空,且只能为大于0的数字’, ‘alert’);
return false;
}
if(p_height <= 0) {
showDialog(‘高度不能为空,且只能为大于0的数字’, ‘alert’);
return false;
}
jQuery.ajax({
url:’plugin.php’,
type:’post’,
async:false,
dataType:’html’,
data:’id=helper:tool&action=ydyy&p_submit=1&p_long=’+p_long+’&p_width=’+p_width+’&p_height=’+p_height,
success:function(msg) {
var data = eval(‘(‘+msg+’)’);
if(!data.status) {
showDialog(data.reason, ‘alert’);
return false;
} else {
jQuery("#r_a").html(data.r_a);
jQuery("#r_b").html(data.r_b);
jQuery("#r_c").html(data.r_c);
jQuery("#r_d").html(data.r_d);
jQuery("#r_e").html(data.r_e);
jQuery("#r_f").html(data.r_f);
jQuery("#r_g").html(data.r_g);
jQuery("#r_h").html(data.r_h);
jQuery("#r_i").html(data.r_i);
jQuery("#r_desc").html(data.r_desc);
}
}
});
return true;
});
});
</script>       

h20 大佬有话说 : 2020-3-19 19:51:29

你这样问没人理你的

robot 大佬有话说 : 2020-3-19 19:52:20

在后台算的

我是一个大水怪 大佬有话说 : 2020-3-19 20:06:33

前端页面上MVVM,很快就画出来了。

后台算,算法也不是什么高深,随便百度/Google两篇论文就行了。

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具