10 2023 档案
摘要:直接上代码 在后台写 允许跨域的域名, $allowedDomains = array("https://example1.com", "https://example2.com"); $origin = isset($_SERVER['HTTP_ORIGIN']) ? $_SERVER['HTTP
阅读全文
摘要:Uniapp中弹窗 直接上代码 uni.showModal({ title: '提示', content: '这是一个自定义按钮文字的模态对话框', confirmText: '自定义确定', // 自定义确定按钮的文字 cancelText: '自定义取消', // 自定义取消按钮的文字 succ
阅读全文
摘要:Niushop中弹窗确定取消 直接上代码 uni.showModal({ title: '提示', content: '必须先购买VIP商品?', success: res => { if (res.confirm) { } }, })
阅读全文
摘要:Niushop中uniapp的访问接口 直接上代码 this.$api.sendRequest({ url: '/pintuan/api/order/isbuy', success: res => { console.log(res) if(res.code == 1){ //跳转VIP } },
阅读全文
摘要:把文件局搜索一下 event中的 在addon文件里面会找到答案
阅读全文
摘要:是这个表 local_delivery_package
阅读全文
摘要:Uniapp代码页面嵌入HTML链接地址 实现路径规划 Uniapp代码如下 <template> <view> <web-view :src="htmlContent"></web-view> </view> </template> <script> export default { data()
阅读全文
摘要:直接上代码 function go(a){ if(a == 'shifu'){ //移除属性 var shop = document.getElementsByClassName("shop")[0]; shop.classList.remove("ns-border-color"); //增加属性
阅读全文
摘要:PHP将一个数字分成若干个数相加 直接上代码 public function pintuan(){ // 示例用法 $number = 10; // 要分成几加几加几 $parts = 3; // 分成3个数相加 $result = $this-> splitNumber($number, $par
阅读全文